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 }}/cancelYou can do: gh api -X POST /repos/{owner}/{repo}/actions/runs/${{ github.run_id }}/cancelIt 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
Uh oh!
There was an error while loading. Please reload this page.
-
Instructions on how to join is in the readme of this repository
Beta Was this translation helpful? Give feedback.
All reactions