mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-19 18:18:27 -05:00
fix(gha): do not cancel for main/prod branches (#60383)
This commit is contained in:
committed by
GitHub
parent
c37af5001b
commit
186ccf2602
2
.github/workflows/e2e-playwright.yml
vendored
2
.github/workflows/e2e-playwright.yml
vendored
@@ -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:
|
||||
|
||||
8
.github/workflows/e2e-third-party.yml
vendored
8
.github/workflows/e2e-third-party.yml
vendored
@@ -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:
|
||||
|
||||
7
.github/workflows/node.js-tests.yml
vendored
7
.github/workflows/node.js-tests.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user