mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
feat: add documentation for canceling all GitHub actions jobs using GitHub CLI
This commit is contained in:
21
HelmChart/Docs/GitHub.md
Normal file
21
HelmChart/Docs/GitHub.md
Normal file
@@ -0,0 +1,21 @@
|
||||
# GitHub Ops
|
||||
|
||||
### Cancel all GitHub actions jobs at once.
|
||||
|
||||
Please install GitHub CLI and run the below command in your terminal.
|
||||
|
||||
```
|
||||
brew install gh
|
||||
```
|
||||
|
||||
Authenticate with your GitHub account
|
||||
|
||||
```
|
||||
gh auth login
|
||||
````
|
||||
|
||||
Then run the below command in your terminal
|
||||
|
||||
```
|
||||
for id in $(gh run list --limit 5000 --jq ".[] | select (.status == \"queued\" ) | .databaseId" --json databaseId,status); do gh run cancel $id; done
|
||||
```
|
||||
Reference in New Issue
Block a user