Cancel previous CI runs on successive PR pushes with GitHub actions (#3575)

This commit is contained in:
Bruno Alla 2022-02-21 22:50:19 +00:00 committed by GitHub
parent 28bc48d0f2
commit 7e444e6aa4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -4,6 +4,10 @@ on:
push:
pull_request:
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
@ -75,8 +79,8 @@ jobs:
- name: With Gulp
args: "js_task_runner=Gulp custom_bootstrap_compilation=y"
runs-on: ubuntu-latest
name: "${{ matrix.script.name }} Bare metal"
runs-on: ubuntu-latest
services:
redis:
image: redis:5.0

View File

@ -14,6 +14,9 @@ on:
branches: [ "master", "main" ]
paths-ignore: [ "docs/**" ]
concurrency:
group: {% raw %}${{ github.head_ref || github.run_id }}{% endraw %}
cancel-in-progress: true
jobs:
linter: