Skip to content

Commit

Permalink
Add sleep between publish and download
Browse files Browse the repository at this point in the history
Reduces flaky responses (404) when downloading assets.
  • Loading branch information
joeyparrish committed Aug 26, 2021
1 parent 93e912d commit 6857a56
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,11 @@ jobs:
node ./repo-src/.github/workflows/api-client/main.js \
publish-release "$release_id"
# The downloads are sometimes a bit flaky (responding with 404) if we
# don't put some delay between publication and download. This number
# is arbitrary, but experimentally, it seems to solve the issue.
sleep 30
# Next, download the assets.
node ./repo-src/.github/workflows/api-client/main.js \
download-all-assets "$release_id" assets/
Expand Down

0 comments on commit 6857a56

Please sign in to comment.