Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
cloud-snow

GitHub Action

Cancel this build

0.4

Cancel this build

cloud-snow

Cancel this build

Uses the GitHub Actions API to cancel the build

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Cancel this build

uses: andymckay/[email protected]

Learn more about this action in andymckay/cancel-action

Choose a version

Cancel Action

This Action uses the GitHub API to cancel the currently running workflow. Example usage:

    - 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.