Skip to content

Commit a96422d

Browse files
authored
Update apger-engine.yml
1 parent 3a7c057 commit a96422d

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/apger-engine.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,16 @@ jobs:
164164
cp -r "$APG_ROOT/scripts" .
165165
fi
166166
167-
# Commit and push
167+
# Commit and push with retry
168168
git config user.name "github-actions[bot]"
169169
git config user.email "github-actions[bot]@users.noreply.github.com"
170170
git add .
171171
git commit -m "Deploy package ${{ env.PACKAGE_NAME }} v${{ env.PACKAGE_VERSION }}" || echo "No changes to commit"
172-
git push
172+
173+
# Retry push with pull if rejected (5 attempts with 60 second delay)
174+
for i in {1..5}; do
175+
git pull --rebase origin main && git push && break || sleep 60
176+
done
173177
174178
- name: Create Release
175179
uses: softprops/action-gh-release@v1

0 commit comments

Comments
 (0)