mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-02-03 13:14:28 +03:00
Cancel previous CI runs on successive PR pushes with GitHub actions (#3575)
This commit is contained in:
parent
28bc48d0f2
commit
7e444e6aa4
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
@ -4,6 +4,10 @@ on:
|
||||||
push:
|
push:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.head_ref || github.run_id }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -75,8 +79,8 @@ jobs:
|
||||||
- name: With Gulp
|
- name: With Gulp
|
||||||
args: "js_task_runner=Gulp custom_bootstrap_compilation=y"
|
args: "js_task_runner=Gulp custom_bootstrap_compilation=y"
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
name: "${{ matrix.script.name }} Bare metal"
|
name: "${{ matrix.script.name }} Bare metal"
|
||||||
|
runs-on: ubuntu-latest
|
||||||
services:
|
services:
|
||||||
redis:
|
redis:
|
||||||
image: redis:5.0
|
image: redis:5.0
|
||||||
|
|
|
@ -14,6 +14,9 @@ on:
|
||||||
branches: [ "master", "main" ]
|
branches: [ "master", "main" ]
|
||||||
paths-ignore: [ "docs/**" ]
|
paths-ignore: [ "docs/**" ]
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: {% raw %}${{ github.head_ref || github.run_id }}{% endraw %}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
linter:
|
linter:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user