Skip to content

Commit

Permalink
[ci] add settings to cancel workflow when new commit pushed
Browse files Browse the repository at this point in the history
Signed-off-by: Avimitin <[email protected]>
  • Loading branch information
Avimitin authored and sequencer committed Jan 20, 2024
1 parent 5ca1666 commit 2fcbebb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ env:
USER: runner
JAVA_OPTS: "-Duser.home=/run/github-runner/sequencer"

# Cancel the current workflow when new commit pushed
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true

jobs:
gen-matrix:
name: "Prepare for running testcases"
Expand Down

0 comments on commit 2fcbebb

Please sign in to comment.