ci: full clone so version-tag builds can check out older commits
All checks were successful
release / build-and-release (push) Successful in 33s
All checks were successful
release / build-and-release (push) Successful in 33s
A vX.Y tag may point at a commit behind the main tip; --depth=1 only fetched the tip, so git checkout of the tag commit failed (unable to read tree). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
043faa50cf
commit
0d5289937b
1 changed files with 3 additions and 1 deletions
|
|
@ -29,7 +29,9 @@ jobs:
|
||||||
working-directory: /
|
working-directory: /
|
||||||
run: |
|
run: |
|
||||||
apk add --no-cache git curl jq mingw-w64-gcc docker-cli
|
apk add --no-cache git curl jq mingw-w64-gcc docker-cli
|
||||||
git clone --depth=1 \
|
# Full clone (not --depth=1): a version tag can point at an older commit
|
||||||
|
# than the main tip, which a shallow clone would not contain.
|
||||||
|
git clone \
|
||||||
"http://x9:${{ secrets.FORGEJO_TOKEN }}@xetup-forgejo:3000/${{ github.repository }}.git" \
|
"http://x9:${{ secrets.FORGEJO_TOKEN }}@xetup-forgejo:3000/${{ github.repository }}.git" \
|
||||||
/repo
|
/repo
|
||||||
cd /repo
|
cd /repo
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue