[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:
Earl Warren 2024-02-18 16:05:42 +01:00
parent 102b3738a2
commit aef5f44169
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -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"