Cancel workflow
ActionsTags
(2)This action cancels the currently running workflow.
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:
steps:
- name: Check condition
if: env.my_variable == 'true'
uses: action-pack/cancel@v1
Cancel workflow is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.