How to remove stale github workflows
There’s a long standing Github ticket for removing stale github workflows. Turns out there’s no way to remove a workflow.
The work around here is to remove all workflow runs first.
- Install github command line tool:
brew install gh
- In the repo’s working directory do the following:
|
|
Replace stale-workflow.yml
with the appropriate workflow file name.
Note that this does not handle the case where there are many hundreds of workflow runs.