do additional check for json data, and retry for 5-ish minutes on failure (#1125)

This commit is contained in:
Jonathan Wren 2020-12-19 16:36:25 -08:00 committed by GitHub
parent 08fb53a6d4
commit 6dbe2a1df4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -162,7 +162,15 @@ jobs:
run: brew install pipgrip
- name: Query PyPI API
run: curl -Ls https://pypi.org/pypi/jrnl/json > api_response.json
uses: nick-invision/retry@v2
with:
timeout_seconds: 10
max_attempts: 30
retry_wait_seconds: 10
command: |
curl -Ls https://pypi.org/pypi/jrnl/json > api_response.json
# if query doesn't have our version yet, give it some time before trying again
[[ "null" == "$(jq ".releases[\"${PYPI_VERSION}\"][1].url" -r api_response.json)" ]] && exit 1
- name: Update Homebrew Formula
run: >