Skip to content

Commit

Permalink
Make all workflows cancel in progress workflows if concurrent (#2167)
Browse files Browse the repository at this point in the history
  • Loading branch information
npentrel authored Nov 3, 2023
1 parent feb01bf commit 5f7ea70
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/check-methods.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Check Python SDK method coverage

concurrency:
group: pullrequest-untrusted-coverage-${{ github.event.number }}
cancel-in-progress: true

on:
workflow_dispatch:
pull_request:
Expand Down Expand Up @@ -27,5 +31,5 @@ jobs:
cache: "pip" # caching pip dependencies
- run: pip install beautifulsoup4 markdownify argparse

- name: Build
- name: Run Coverage test
run: make coveragetest
4 changes: 4 additions & 0 deletions .github/workflows/markdown-lint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Lint Markdown files

concurrency:
group: pullrequest-untrusted-markdownlint-${{ github.event.number }}
cancel-in-progress: true

on:
workflow_dispatch:
pull_request:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/prettier-lint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Lint JS files with Prettier

concurrency:
group: pullrequest-untrusted-prettierlint-${{ github.event.number }}
cancel-in-progress: true

# This action works with pull requests and pushes
on:
pull_request:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/python-lint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Lint Python Code Snippets

concurrency:
group: pullrequest-untrusted-pythonlint-${{ github.event.number }}
cancel-in-progress: true

on:
workflow_dispatch:
pull_request:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/vale-lint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: vale-lint

concurrency:
group: pullrequest-untrusted-valelint-${{ github.event.number }}
cancel-in-progress: true

on:
pull_request:
types: [opened, synchronize]
Expand Down

0 comments on commit 5f7ea70

Please sign in to comment.