Delete all runs for a given workflow in GitHub, using the GitHub CLI.
- Install GitHub CLI: https://github.com/cli/cli#installation
- Authenticate GitHub CLI:
gh auth login
- Install this package (probably globally):
npm i -g delete-github-workflow-runs
After following the "How to setup" steps above, execute the script by running:
delete-github-workflow-runs <repo-owner-name> <repo-name> <workflow-name>
Example:
delete-github-workflow-runs electrovir element-vir tests