Skip to content

Commit

Permalink
Change concurrency for GH workflows to prevent conflicts between PRs (k…
Browse files Browse the repository at this point in the history
  • Loading branch information
stianst authored Jul 27, 2023
1 parent 442e621 commit 17d2113
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ env:

concurrency:
# Only cancel jobs for PR updates
group: ci-${{ github.head_ref || github.run_id }}
group: ci-${{ github.ref }}
cancel-in-progress: true

defaults:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

concurrency:
# Only cancel jobs for PR updates
group: codeql-analysis-${{ github.head_ref || github.run_id }}
group: codeql-analysis-${{ github.ref }}
cancel-in-progress: true

defaults:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

concurrency:
# Only cancel jobs for PR updates
group: documentation-${{ github.head_ref || github.run_id }}
group: documentation-${{ github.ref }}
cancel-in-progress: true

defaults:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/guides.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

concurrency:
# Only cancel jobs for PR updates
group: guides-${{ github.head_ref || github.run_id }}
group: guides-${{ github.ref }}
cancel-in-progress: true

defaults:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/js-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

concurrency:
# Only cancel jobs for PR updates
group: js-ci-${{ github.head_ref || github.run_id }}
group: js-ci-${{ github.ref }}
cancel-in-progress: true

defaults:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/operator-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ defaults:

concurrency:
# Only cancel jobs for PR updates
group: operator-ci-${{ github.head_ref || github.run_id }}
group: operator-ci-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand Down

0 comments on commit 17d2113

Please sign in to comment.