From 9c421cdfc3b13537a707a7a9524d21235dff2aa4 Mon Sep 17 00:00:00 2001 From: Elton Gao Date: Tue, 17 Sep 2024 16:06:52 -0400 Subject: [PATCH 1/3] Fix new PR cancel previous PR's workflow --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6fa86386..2d39b228 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,7 +8,7 @@ on: # One active job per PR, cancel older ones on push concurrency: - group: ${{ github.head_ref || github.run_id }} + group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true # NOTE: because matrix cannot easily be shared across jobs, it should be copied to each job From 652d89eba4354f1e8a1a38767eae1e5f72c427ee Mon Sep 17 00:00:00 2001 From: Elton Gao Date: Tue, 17 Sep 2024 16:51:50 -0400 Subject: [PATCH 2/3] Update tests.yml --- .github/workflows/tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2d39b228..5ad591e2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -7,6 +7,7 @@ on: - master # One active job per PR, cancel older ones on push +# Just add here to verify above is true concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true From c62bd02e81d4d6c319c584a71ae164acc27aa159 Mon Sep 17 00:00:00 2001 From: Elton Gao Date: Tue, 17 Sep 2024 16:55:02 -0400 Subject: [PATCH 3/3] Update tests.yml --- .github/workflows/tests.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5ad591e2..2d39b228 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -7,7 +7,6 @@ on: - master # One active job per PR, cancel older ones on push -# Just add here to verify above is true concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true