This Action uses the GitHub API to cancel the currently running workflow. Example usage:
- name: cancelling
uses: andymckay/cancel-action@0.4The 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.
Forked this because I don't trust the repo this was taken from ( https://github.com/andymckay/cancel-action ) to stay up forever
Error:
Resource not accessible by integration
Solution: Give the workflow write access to github actions, usually by including this in the top-level of the workflow file:
permissions:
actions: write