Skip to content

Commit

Permalink
Cancel jobs that should be overridden.
Browse files Browse the repository at this point in the history
Signed-off-by: James R. Perkins <[email protected]>
  • Loading branch information
jamezp committed Jun 15, 2023
1 parent ec8b627 commit 7dfbc91
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ on:
- "security.txt"
- "*/README.adoc"

# Only run the latest job
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true

jobs:
build:
name: Build and Test
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/nightly-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ on:
schedule:
- cron: '0 0 * * *' # Every day at 00:00 UTC

# Only run the latest job and cancel previous ones
concurrency:
group: '${{ github.ref || github.run_id }}'
cancel-in-progress: true

jobs:
resteasy-test:
name: Build and test against RESTEasy
Expand Down

0 comments on commit 7dfbc91

Please sign in to comment.