3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-07-15 03:25:43 +00:00

Harden Nightly tag cleanup and verification

This commit is contained in:
copilot-swe-agent[bot] 2026-07-12 23:44:19 +00:00 committed by GitHub
parent 9ad98d971b
commit 9bc860e8e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -833,13 +833,27 @@ jobs:
else
echo "No release to delete"
fi
if git ls-remote --exit-code --tags origin refs/tags/Nightly > /dev/null 2>&1; then
# Tag may exist without a release (for example, if a previous run failed mid-deploy).
git push origin :refs/tags/Nightly
fi
- name: Create Nightly release
env:
GH_TOKEN: ${{ github.token }}
run: |
git tag -f Nightly "${{ github.sha }}"
git push --force origin refs/tags/Nightly
if ! git push --force origin refs/tags/Nightly; then
echo "Failed to push Nightly tag"
exit 1
fi
TAG_SHA="$(git ls-remote --tags origin refs/tags/Nightly | awk '{print $1}')"
if [ "$TAG_SHA" != "${{ github.sha }}" ]; then
echo "Nightly tag points to $TAG_SHA, expected ${{ github.sha }}"
exit 1
fi
ls
find tmp -type f \( -name "*.zip" -o -name "*.whl" -o -name "*.tar.gz" -o -name "*.nupkg" -o -name "*.snupkg" \) -print0 > release_files.txt