mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 08:38:32 +02:00
do additional check for json data, and retry for 5-ish minutes on failure (#1125)
This commit is contained in:
parent
2e9e857b7b
commit
68cf2d773d
1 changed files with 9 additions and 1 deletions
10
.github/workflows/release.yaml
vendored
10
.github/workflows/release.yaml
vendored
|
@ -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: >
|
||||
|
|
Loading…
Add table
Reference in a new issue