Skip to content

[skip circleci] Add option to effectively cancel prev runs #2310

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

Merged
merged 4 commits into from
Oct 30, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Cancel by branch *and* workflow
Without it will cancel other workflows for the same branch
Credits: 7b371e8b
  • Loading branch information
jneira authored Oct 29, 2021
commit 8ba3ee7cf3eecc873e6f864d1af78a7f097dc9ab
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ defaults:
run:
shell: bash

# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency.
concurrency:
group: ${{ github.head_ref }}
group: ${{ github.head_ref }}-${{ github.workflow }}
cancel-in-progress: true

on:
Expand Down