We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff54b77 commit d540e52Copy full SHA for d540e52
1 file changed
.github/workflows/update-manifest.yml
@@ -83,4 +83,18 @@ jobs:
83
git commit -m "chore(${SERVICE_NAME}): update image to ${{ steps.info.outputs.branch }}-${{ steps.info.outputs.sha }}" \
84
-m "Triggered by: ${{ github.event.workflow_run.html_url }}"
85
86
- git push origin ${{ steps.info.outputs.branch }}
+ # Retry loop for race conditions
87
+ MAX_RETRIES=5
88
+ for ((i=1; i<=MAX_RETRIES; i++)); do
89
+ echo "🔄 Attempt $i of $MAX_RETRIES to push changes..."
90
+ git pull --rebase origin ${{ steps.info.outputs.branch }}
91
+ if git push origin ${{ steps.info.outputs.branch }}; then
92
+ echo "✅ Push successful!"
93
+ exit 0
94
+ fi
95
+ echo "⚠️ Push failed, retrying in roughly 5 seconds..."
96
+ sleep $((RANDOM % 5 + 3))
97
+ done
98
+
99
+ echo "❌ Failed to push changes after $MAX_RETRIES attempts."
100
+ exit 1
0 commit comments