fix(gha): do not cancel for main/prod branches (#60383)

This commit is contained in:
Mrugesh Mohapatra
2025-05-16 00:16:46 +05:30
committed by GitHub
parent c37af5001b
commit 186ccf2602
3 changed files with 4 additions and 13 deletions

View File

@@ -13,7 +13,7 @@ on:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.workflow_run.head_branch || github.ref }}
cancel-in-progress: true
cancel-in-progress: ${{ !contains(github.ref, 'main') && !contains(github.ref, 'prod-') }}
jobs:
build-client:

View File

@@ -1,18 +1,14 @@
name: CI - E2E - 3rd party donation tests
# These are only run on prod-* branches to test the 3rd party donation flow
on:
workflow_dispatch:
push:
branches:
- 'prod-**'
# to test this ad-hoc
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.workflow_run.head_branch || github.ref }}
cancel-in-progress: true
cancel-in-progress: ${{ !contains(github.ref, 'main') && !contains(github.ref, 'prod-') }}
jobs:
do-everything:

View File

@@ -1,23 +1,18 @@
name: CI - Node.js
on:
# Run on push events, but only for the below branches
push:
branches:
- 'main'
- 'prod-**'
# Run on pull requests, but only for the below targets
pull_request:
branches:
- 'main'
- 'temp-**' # Temporary branches allowed on Upstream
# Run on Merge Queue
merge_group:
types: [checks_requested]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.workflow_run.head_branch || github.ref }}
cancel-in-progress: true
cancel-in-progress: ${{ !contains(github.ref, 'main') && !contains(github.ref, 'prod-') }}
permissions:
contents: read