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
parent 2e9e857b7b
commit 68cf2d773d
No known key found for this signature in database
GPG key ID: 43D5FF8722E7F68A

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: >