Skip to content

Commit

Permalink
add --exit-status to jq so monitor fails when no commit is found
Browse files Browse the repository at this point in the history
this appears to be due to API rate limiting, this should keep the monitor job from being flappy
  • Loading branch information
ewdurbin committed Feb 1, 2025
1 parent 5b05d09 commit b24b8d5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/monitor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:

- name: check
run: |
curl --silent https://api.github.com/repos/pypa/get-pip/commits/main | jq -r '.sha' > .versions/get-pip-version.json
curl --silent https://api.github.com/repos/pypa/get-virtualenv/commits/main | jq -r '.sha' > .versions/get-virtualenv-version.json
curl --silent https://api.github.com/repos/pypa/setuptools/commits/bootstrap | jq -r '.sha' > .versions/setuptools-version.json
curl --silent https://api.github.com/repos/buildout/buildout/commits/bootstrap-release | jq -r '.sha' > .versions/buildout-version.json
curl --silent https://api.github.com/repos/pypa/get-pip/commits/main | jq --exit-status -r '.sha' > .versions/get-pip-version.json
curl --silent https://api.github.com/repos/pypa/get-virtualenv/commits/main | jq --exit-status -r '.sha' > .versions/get-virtualenv-version.json
curl --silent https://api.github.com/repos/pypa/setuptools/commits/bootstrap | jq --exit-status -r '.sha' > .versions/setuptools-version.json
curl --silent https://api.github.com/repos/buildout/buildout/commits/bootstrap-release | jq --exit-status -r '.sha' > .versions/buildout-version.json
- name: commit changes
uses: stefanzweifel/git-auto-commit-action@v5
Expand Down

0 comments on commit b24b8d5

Please sign in to comment.