We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a7c057 commit a96422dCopy full SHA for a96422d
1 file changed
.github/workflows/apger-engine.yml
@@ -164,12 +164,16 @@ jobs:
164
cp -r "$APG_ROOT/scripts" .
165
fi
166
167
- # Commit and push
+ # Commit and push with retry
168
git config user.name "github-actions[bot]"
169
git config user.email "github-actions[bot]@users.noreply.github.com"
170
git add .
171
git commit -m "Deploy package ${{ env.PACKAGE_NAME }} v${{ env.PACKAGE_VERSION }}" || echo "No changes to commit"
172
- git push
+
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
177
178
- name: Create Release
179
uses: softprops/action-gh-release@v1
0 commit comments