Skip to content

Conversation

@zarthross
Copy link
Contributor

Github actions allows you to set cancellation based on an expression.
Changing the cancelInProgress to a string allows me to set the
cancellation based on branch which would help my team prevent
cancellation of main branch builds in the middle of an automatic publish
leaving us in a half published state.

Example:
docs

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: ${{ !contains(github.ref, 'release/')}}

…llation.

Github actions allows you to set cancellation based on an expression.
Changing the cancelInProgress to a string allows me to set the
cancellation based on branch which would help my team prevent
cancellation of main branch builds in the middle of an automatic publish
leaving us in a half published state.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant