Replies: 1 comment 1 reply
-
Hey, cool presentation yesterday! I had a small note on the use of For calls like: curl -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/cancel You can do: gh api -X POST /repos/{owner}/{repo}/actions/runs/${{ github.run_id }}/cancel It will handle the authorization, media types, and even pagination for you. Using the placeholders, such as
Lots more cool stuff if you see |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Instructions on how to join is in the readme of this repository
Beta Was this translation helpful? Give feedback.
All reactions