-
-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add ignore_branch
flag to cancel workflows in all branches
#207
base: main
Are you sure you want to change the base?
Conversation
mpontus
commented
May 24, 2023
•
edited by styfle
Loading
edited by styfle
- Fixes Cancel previous runs of same workflow id on all branches #86
@@ -12,6 +12,10 @@ inputs: | |||
description: 'Optional - Allow canceling other workflows with the same SHA. Useful for the `pull_request.closed` event.' | |||
required: false | |||
default: 'false' | |||
ignore_branch: | |||
description: 'Optional - Allow canceling workflows in all branches.' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description: 'Optional - Allow canceling workflows in all branches.' | |
description: 'Optional - Allow canceling workflows, regardless of branch.' |
- uses: styfle/cancel-workflow-action | ||
with: | ||
ignore_branch: true | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets move this new section below ### Advanced: SHA
since I think it wont be a common use case.
Also lets call it ### Advanced: Ignore Branch
@styfle I want to apologize for opening this PR prematurely. I did not intend to open a PR before testing the change, but somehow the auto-pilot took over and did it anyway. I had a chance to try my changes shortly afterward, and I could not get it to work having the I did this testing on a private repo and I didn't have a chance to investigate the issue further since then. I will try to find a better option to test my changes and perform diagnostics in the open. I appreciate your responsiveness to my PR. I will try to return with an update shortly. |