We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8093fbb commit 8d9701bCopy full SHA for 8d9701b
.github/workflows/release.yml
@@ -53,8 +53,20 @@ jobs:
53
env:
54
GH_TOKEN: ${{ github.token }}
55
run: |
56
- gh release create "${{ steps.version.outputs.tag }}" \
57
- --repo "$GITHUB_REPOSITORY" \
58
- --target "$GITHUB_SHA" \
59
- --title "TPS ${{ steps.version.outputs.tag }}" \
60
- --generate-notes
+ for attempt in 1 2 3; do
+ if gh release create "${{ steps.version.outputs.tag }}" \
+ --repo "$GITHUB_REPOSITORY" \
+ --target "$GITHUB_SHA" \
+ --title "TPS ${{ steps.version.outputs.tag }}" \
61
+ --generate-notes; then
62
+ exit 0
63
+ fi
64
+
65
+ if [ "$attempt" -eq 3 ]; then
66
+ echo "Failed to create GitHub release after $attempt attempts."
67
+ exit 1
68
69
70
+ echo "Release creation failed on attempt $attempt. Retrying..."
71
+ sleep 5
72
+ done
0 commit comments