Skip to content

Commit

Permalink
feat: Run workflows in concurrency groups (#7211)
Browse files Browse the repository at this point in the history
* feat: Added concurrency config using unique workflow groups

* Remove whitespace to test cancellation

* Remove whitespace to test cancellation 2

Co-authored-by: Vinit Kumar <mail@vinitkumar.me>
  • Loading branch information
marksweb and vinitkumar committed Jan 27, 2022
1 parent 2dfc96e commit 04e8433
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docs.yml
Expand Up @@ -2,9 +2,9 @@ name: Docs

on: [push, pull_request]

#concurrency:
# group: ${{ github.head_ref || github.run_id }}
# cancel-in-progress: true
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
docs:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/frontend.yml
Expand Up @@ -2,9 +2,9 @@ name: django CMS frontend.yml

on: [push, pull_request]

#concurrency:
# group: ${{ github.head_ref || github.run_id }}
# cancel-in-progress: true
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
frontend:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/linters.yml
Expand Up @@ -2,9 +2,9 @@ name: django CMS linters.yml

on: [push, pull_request]

#concurrency:
# group: ${{ github.head_ref || github.run_id }}
# cancel-in-progress: true
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
flake8:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Expand Up @@ -2,9 +2,9 @@ name: django CMS test.yml

on: [push, pull_request]

#concurrency:
# group: ${{ github.head_ref || github.run_id }}
# cancel-in-progress: true
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
database-postgres:
Expand Down

0 comments on commit 04e8433

Please sign in to comment.