From 93debd301d34aaa4e2116d1924232e5f3117a699 Mon Sep 17 00:00:00 2001 From: Anton Lozhkov Date: Thu, 1 Sep 2022 16:14:53 +0200 Subject: [PATCH] [CI] Cancel pending jobs for PRs on new commits (#324) Cancel pending jobs for PRs on new commits --- .github/workflows/pr_quality.yml | 4 ++++ .github/workflows/pr_tests.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/pr_quality.yml b/.github/workflows/pr_quality.yml index 5fa8cda3..5a850bea 100644 --- a/.github/workflows/pr_quality.yml +++ b/.github/workflows/pr_quality.yml @@ -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 diff --git a/.github/workflows/pr_tests.yml b/.github/workflows/pr_tests.yml index 9dbbe4a4..1208a0d2 100644 --- a/.github/workflows/pr_tests.yml +++ b/.github/workflows/pr_tests.yml @@ -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