From 6bec367aa8a8f4b755e088fd5788b3603066217b Mon Sep 17 00:00:00 2001 From: Giacomo Pasini Date: Fri, 25 Mar 2022 09:08:48 +0100 Subject: [PATCH] Add automatic retry + timeout for fetching release (#3895) (#3905) --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 081164ec3c..7c8fc0d69f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: