From 5bf1a77a0be9046be512b98b02cef950e666f500 Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Mon, 22 Jul 2024 03:51:33 -0700 Subject: [PATCH] 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 --- .github/workflows/test-all.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/test-all.yml b/.github/workflows/test-all.yml index f8b63e0bf6c..9d86d8e75d5 100644 --- a/.github/workflows/test-all.yml +++ b/.github/workflows/test-all.yml @@ -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