GitHub action to cancel a workflow run while in-progress
This Action uses the GitHub API to cancel the currently running workflow. Example usage:
- name: Cancel workflow
uses: glenthomas/cancel-workflow-run@main
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.
We welcome contributions to improve the Cancel Action! To get started, please follow these guidelines:
- Fork the repository and clone it locally.
- Create a new branch for your changes:
git checkout -b feature/your-feature-name
. - Install the required npm packages by running the following command:
npm install
- Make your changes and test them thoroughly.
- Build the distributable JS code by running the following command:
npm run build
- Commit your changes:
git commit -m "Add your commit message"
. - Push your changes to your forked repository:
git push origin feature/your-feature-name
. - Open a pull request against the main repository's
master
branch.
Please ensure to provide a clear description of your changes in the pull request.