mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-02-24 02:01:30 -05:00
fix(gha): do not cancel for main/prod branches (#60383)
This commit is contained in:
committed by
GitHub
parent
c37af5001b
commit
186ccf2602
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