[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
1 changed files with 3 additions and 0 deletions

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"