Cancel test-all job is another commits get pushed in the same branch (#45568)

Summary:
CircleCI was automatically cancelling an old run if a new commit was pushed on the branch.
GitHub does not have the same behavior enabled by default.

Keep running jobs in a pipeline when there is a new commit is usually wasteful of resources and cost money we can save.

## Changelog:
[Internal] - Cancel old jobs if a new commit is pushed

Pull Request resolved: https://github.com/facebook/react-native/pull/45568

Test Plan: Tested on GHA on this PR

Reviewed By: blakef

Differential Revision: D60035940

Pulled By: cipolleschi

fbshipit-source-id: 88b4dfc8bdd3eded6489a87db285e9544d3a1bcf
This commit is contained in:
Riccardo Cipolleschi
2024-07-22 03:51:33 -07:00
committed by Facebook GitHub Bot
parent e42932cfc6
commit 5bf1a77a0b
+4
View File
@@ -8,6 +8,10 @@ on:
- main
- "*-stable"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true # cancel previous runs
jobs:
set_release_type:
runs-on: ubuntu-latest