ci: retry push with rebase to prevent version bump race condition [skip ci]

This commit is contained in:
2026-04-17 19:41:24 +10:00
parent 49cc17d105
commit 1bfb18ba86

View File

@@ -45,7 +45,11 @@ jobs:
git config user.email "actions@github.com" git config user.email "actions@github.com"
git add package.json git add package.json
git commit -m "chore: bump version to ${{ steps.bump.outputs.VERSION }} [skip ci]" git commit -m "chore: bump version to ${{ steps.bump.outputs.VERSION }} [skip ci]"
git push for i in 1 2 3; do
git pull --rebase origin master && git push && break
echo "Push attempt $i failed, retrying..."
sleep 3
done
build-and-release: build-and-release:
runs-on: ubuntu-latest runs-on: ubuntu-latest