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 (#978)

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

Closes: #978

Signed-off-by: Yu-Lin Chen <chenyulin0719@apache.org>
  • Loading branch information
blueBlue0102 authored and chenyulin0719 committed Oct 4, 2024
1 parent 4ea2251 commit b870b0c
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 b870b0c

Please sign in to comment.