Skip to content

Commit

Permalink
[CI] Cancel pending jobs for PRs on new commits (huggingface#324)
Browse files Browse the repository at this point in the history
Cancel pending jobs for PRs on new commits
  • Loading branch information
anton-l authored Sep 1, 2022
1 parent 1b1d644 commit 93debd3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/pr_quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
check_code_quality:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/pr_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

env:
HF_HOME: /mnt/cache
OMP_NUM_THREADS: 8
Expand Down

0 comments on commit 93debd3

Please sign in to comment.