Skip to content

Commit

Permalink
chore(release): only the release action should be gated to one at a t…
Browse files Browse the repository at this point in the history
…ime; PR build and test should be able to run in parallel across multiple PRs (RHIDP-4430) (janus-idp#2370)

* chore(release) only the release action should be gated to one at a time; PR build and test should be able to run in parallel across multiple PRs (RHIDP-4430)

Signed-off-by: Nick Boldt <nboldt@redhat.com>

* enforce only one action can run at a time for a given PR; updating a PR, actions in progress will be cancelled to start a fresh one

Signed-off-by: Nick Boldt <nboldt@redhat.com>

---------

Signed-off-by: Nick Boldt <nboldt@redhat.com>
  • Loading branch information
nickboldt authored Oct 16, 2024
1 parent b84201c commit 5cf60df
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/pr-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ env:
TURBO_SCM_BASE: ${{ github.event.pull_request.base.sha }}
TURBO_SCM_HEAD: ${{ github.sha }}

# enforce only one action can run at a time for a given PR, and
# when updating a PR, actions in progress will be cancelled to start a fresh one
concurrency:
group: push
cancel-in-progress: false
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/pr-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ env:
TURBO_SCM_BASE: ${{ github.event.pull_request.base.sha }}
TURBO_SCM_HEAD: ${{ github.sha }}

# enforce only one action can run at a time for a given PR, and
# when updating a PR, actions in progress will be cancelled to start a fresh one
concurrency:
group: push
cancel-in-progress: false
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ on:
- 1.2.x
- release-[0-9].[0-9]*

# enforce only one release action at a time
concurrency:
group: push
group: ${{ github.workflow }}
cancel-in-progress: false

jobs:
Expand Down

0 comments on commit 5cf60df

Please sign in to comment.