/cancel-action

Github Action to cancel the currently running workflow

Primary LanguageJavaScriptMIT LicenseMIT

Cancel Action

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

    - name: cancelling
      uses: GetGreenline/cancel-action@<LATEST_COMMIT_HASH>

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.