mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Use native concurrency option to cancel outdated workflow runs (#14943)
This commit is contained in:
4
.github/workflows/blackbox-main.yml
vendored
4
.github/workflows/blackbox-main.yml
vendored
@@ -11,6 +11,10 @@ on:
|
||||
- pnpm-lock.yaml
|
||||
- .github/workflows/blackbox-main.yml
|
||||
|
||||
concurrency:
|
||||
group: blackbox-main
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
NODE_OPTIONS: --max_old_space_size=6144
|
||||
|
||||
|
||||
4
.github/workflows/blackbox-pr.yml
vendored
4
.github/workflows/blackbox-pr.yml
vendored
@@ -10,6 +10,10 @@ on:
|
||||
- package.json
|
||||
- pnpm-lock.yaml
|
||||
|
||||
concurrency:
|
||||
group: blackbox-pr-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
NODE_OPTIONS: --max_old_space_size=6144
|
||||
|
||||
|
||||
14
.github/workflows/check.yml
vendored
14
.github/workflows/check.yml
vendored
@@ -8,20 +8,14 @@ on:
|
||||
branches:
|
||||
- main
|
||||
|
||||
concurrency:
|
||||
group: check-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
NODE_OPTIONS: --max_old_space_size=6144
|
||||
|
||||
jobs:
|
||||
cancel:
|
||||
name: Cancel Previous Runs
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Cancel
|
||||
uses: styfle/cancel-workflow-action@0.10.0
|
||||
with:
|
||||
workflow_id: all
|
||||
access_token: ${{ github.token }}
|
||||
|
||||
lint:
|
||||
name: Lint
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in New Issue
Block a user