Skip to content

Conversation

@mpontus
Copy link

@mpontus mpontus commented May 24, 2023

required: false
default: 'false'
ignore_branch:
description: 'Optional - Allow canceling workflows in all branches.'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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
```
Copy link
Owner

@styfle styfle May 25, 2023

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

@mpontus
Copy link
Author

mpontus commented May 31, 2023

@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 ignore_branch option enabled always resulted in no matched workflows.

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.

@styfle styfle marked this pull request as draft October 3, 2023 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cancel previous runs of same workflow id on all branches

2 participants