Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andymckay/cancel-action
https://github.com/andymckay/cancel-action
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/andymckay/cancel-action
- Owner: andymckay
- License: mit
- Archived: true
- Created: 2020-01-24T23:04:01.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-06-11T15:38:06.000Z (5 months ago)
- Last Synced: 2024-10-17T08:04:06.684Z (27 days ago)
- Language: JavaScript
- Size: 14.6 KB
- Stars: 73
- Watchers: 2
- Forks: 20
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Cancel Action
This Action uses the [GitHub API](https://developer.github.com/v3/actions/workflow_runs/#cancel-a-workflow-run) to cancel the currently running workflow. Example usage:```yaml
- name: cancelling
uses: andymckay/[email protected]
```The cancellation might take a few seconds to process, this is most useful when you'd like to cancel a long running build. In combination with the `if` statement, this allows you to cancel the build conditionally.