Skip to content

Commit

Permalink
[YUNIKORN-2893] Apply "cancel-in-progress" feature for each PR in Git…
Browse files Browse the repository at this point in the history
…hub Action (#920)

Apply the "cancel-in-progress" to automatically cancel previous build.

Closes: #920

Signed-off-by: Yu-Lin Chen <[email protected]>
  • Loading branch information
blueBlue0102 authored and chenyulin0719 committed Oct 3, 2024
1 parent 95101e0 commit 8a4585f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
- master
workflow_dispatch: {}

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 8a4585f

Please sign in to comment.