Skip to content

Conversation

@mscheong01
Copy link
Collaborator

This tweak prevents workflows targeting the master branch from being cancelled by the concurrency option. Took a few test runs to nail it, but confirmed: master branch workflows stay intact, while those targeting other branches get cancelled as expected.
image

Related Stackoverflow post that describes this well:
https://stackoverflow.com/questions/74117321/if-condition-in-concurrency-in-gha

@phymbert
Copy link
Collaborator

phymbert commented Apr 4, 2024

Could you add the same in bench.yaml but keep the input.sha also ?

@mscheong01
Copy link
Collaborator Author

@phymbert done!

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.

2 participants