Skip to content

Commit

Permalink
Add automatic retry + timeout for fetching release (#3895) (#3905)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeegomo authored Mar 25, 2022
1 parent 60a498d commit 6bec367
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
hub release create ${{ steps.release_info.outputs.release_flags }} --draft \
-m "Release ${{ steps.release_info.outputs.version }} (in progress)" \
-t $GITHUB_SHA $release_tag
upload_url=$(hub release show -f '%uA' $release_tag)
upload_url=$(timeout 1m bash -c "until hub release show -f '%uA' $release_tag; do sleep 1; done")
echo "::set-output name=upload_url::$upload_url"
cache_info:
Expand Down

0 comments on commit 6bec367

Please sign in to comment.