[RELEASE] do not limit clone depth when building a release
otherwise git describe may not produce a tag based version number
This commit is contained in:
parent
102b3738a2
commit
aef5f44169
|
@ -28,6 +28,8 @@ jobs:
|
|||
if: vars.ROLE == 'forgejo-integration' || github.repository_owner == 'root'
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Sanitize the name of the repository
|
||||
id: repository
|
||||
|
@ -64,6 +66,7 @@ jobs:
|
|||
exit 1
|
||||
fi
|
||||
version=${version#v}
|
||||
git describe --tags --always
|
||||
echo "sha=${{ github.sha }}" >> "$GITHUB_OUTPUT"
|
||||
echo "version=$version" >> "$GITHUB_OUTPUT"
|
||||
echo "override=$override" >> "$GITHUB_OUTPUT"
|
||||
|
|
Loading…
Reference in a new issue