Skip to content

Commit

Permalink
Add retry logic to creating and updating the release [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Oct 30, 2022
1 parent 6d1108b commit f3fc9a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ log_build

# Create or update release.
if ! gh release view builds; then
gh release create "builds" "${assets[@]}" -t "builds" -n "builds"
bash scripts/retry.sh 5 5 gh release create "builds" "${assets[@]}" -t "builds" -n "builds"
else
gh release upload "builds" "${assets[@]}" --clobber
bash scripts/retry.sh 5 5 gh release upload "builds" "${assets[@]}" --clobber
fi

0 comments on commit f3fc9a0

Please sign in to comment.