mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-08 18:04:14 +01:00
[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
1 changed files with 3 additions and 0 deletions
|
@ -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