Skip to content

Commit

Permalink
ci: Fix usage of concurrency in branches other than master
Browse files Browse the repository at this point in the history
  • Loading branch information
amyspark authored and eli-schwartz committed Oct 30, 2022
1 parent 212af2b commit 0ddca4d
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cygwin.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: cygwin

concurrency:
group: cygwin-${{ github.head_ref }}
group: cygwin-${{ github.head_ref || github.ref }}
cancel-in-progress: true

on:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/file_format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: File format check
on: [push, pull_request]

concurrency:
group: file_fmt-${{ github.head_ref }}
group: file_fmt-${{ github.head_ref || github.ref }}
cancel-in-progress: true

permissions:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/images.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: CI image builder

concurrency:
group: img_builder-${{ github.head_ref }}
group: img_builder-${{ github.head_ref || github.ref }}
cancel-in-progress: true

on:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Lint

concurrency:
group: lint-${{ github.head_ref }}
group: lint-${{ github.head_ref || github.ref }}
cancel-in-progress: true

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

concurrency:
group: macos-${{ github.head_ref }}
group: macos-${{ github.head_ref || github.ref }}
cancel-in-progress: true

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

concurrency:
group: msys2-${{ github.head_ref }}
group: msys2-${{ github.head_ref || github.ref }}
cancel-in-progress: true

on:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nonative.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Cross-only compilation environment

concurrency:
group: nonative-${{ github.head_ref }}
group: nonative-${{ github.head_ref || github.ref }}
cancel-in-progress: true

on:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/os_comp.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: linux

concurrency:
group: linux-${{ github.head_ref }}
group: linux-${{ github.head_ref || github.ref }}
cancel-in-progress: true

on:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unusedargs_missingreturn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:
FFLAGS: "-fimplicit-none"

concurrency:
group: unusedargs-${{ github.head_ref }}
group: unusedargs-${{ github.head_ref || github.ref }}
cancel-in-progress: true

on:
Expand Down

0 comments on commit 0ddca4d

Please sign in to comment.