Skip to content

Commit

Permalink
Cancel redundant CI workflows (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
knyghty authored Dec 1, 2022
1 parent c6b2913 commit 9c37662
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/project_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
name: Project CI
on: pull_request

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
create_and_test_project:
name: Create and test Django project
Expand Down
4 changes: 4 additions & 0 deletions {{cookiecutter.repo_name}}/.github/workflows/django_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
name: Django CI{% raw %}
on: pull_request

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
# # uncomment when using docker
# docker:
Expand Down

0 comments on commit 9c37662

Please sign in to comment.