@samitouri / QOS-React-2 / commits / 7de040ccfa

[ci] Don't cancel runs if more than one branch triggers CI (#31848)

This might primarily only affect those using Sapling for React development, but pushing the same commit to multiple branches shouldn't cancel the run --- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/31848). * __->__ #31848 * #31847 * #31846

lauren committed Dec 18, 2024 at 20:10 UTC 7de040ccfa49f4128f0f5c6a7a81c019b4a381b8
5 files changed +5 -5
.github/workflows/compiler_playground.yml
+1 -1
@@ -9,7 +9,7 @@ on:
9 - .github/workflows/compiler_playground.yml
10
11 concurrency:
12 - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
12 + group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.run_id }}
13 cancel-in-progress: true
14
15 env:
.github/workflows/compiler_rust.yml
+1 -1
@@ -16,7 +16,7 @@ on:
16 - compiler/*.toml
17
18 concurrency:
19 - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
19 + group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.run_id }}
20 cancel-in-progress: true
21
22 env:
.github/workflows/compiler_typescript.yml
+1 -1
@@ -9,7 +9,7 @@ on:
9 - .github/workflows/compiler_typescript.yml
10
11 concurrency:
12 - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
12 + group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.run_id }}
13 cancel-in-progress: true
14
15 env:
.github/workflows/runtime_build_and_test.yml
+1 -1
@@ -8,7 +8,7 @@ on:
8 - compiler/**
9
10 concurrency:
11 - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
11 + group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.run_id }}
12 cancel-in-progress: true
13
14 env:
.github/workflows/shared_lint.yml
+1 -1
@@ -6,7 +6,7 @@ on:
6 pull_request:
7
8 concurrency:
9 - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
9 + group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.run_id }}
10 cancel-in-progress: true
11
12 env: