https://github.com/action-pack/cancel
Action to cancel a workflow.
https://github.com/action-pack/cancel
github-action github-actions github-actions-ci github-workflow github-workflows
Last synced: 4 months ago
JSON representation
Action to cancel a workflow.
- Host: GitHub
- URL: https://github.com/action-pack/cancel
- Owner: action-pack
- License: mit
- Created: 2023-11-28T16:38:05.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2025-08-12T10:30:10.000Z (5 months ago)
- Last Synced: 2025-08-16T14:36:00.039Z (4 months ago)
- Topics: github-action, github-actions, github-actions-ci, github-workflow, github-workflows
- Language: JavaScript
- Homepage:
- Size: 34.2 KB
- Stars: 8
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
Cancel Workflow
[](https://github.com/action-pack/cancel/)
[](https://github.com/marketplace/actions/cancel-workflow)
[](https://github.com/action-pack/cancel/)
This action cancels the currently running workflow.
## Usage 🚀
```yaml
permissions:
actions: write
steps:
- name: Cancel workflow
uses: action-pack/cancel@v1
```
In combination with the ```if``` statement, this allows you to cancel the workflow conditionally:
```yaml
steps:
- name: Check condition
if: env.my_variable == 'true'
uses: action-pack/cancel@v1
```
## Stars 🌟
[](https://starchart.cc/action-pack/cancel)