Skip to content

Single Workflow Concurrency #26576

Answered by Simran-B
AnassZaki asked this question in Actions
Discussion options

You must be logged in to vote

At the top level of your workflow, add

concurrency:
  group: workflow-xyz
  cancel-in-progress: true

You can use any string as group name, just make sure you don’t use it in any other workflow again. You may use ${{ github.workflow }} which is the workflow name or file path.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants