Skip to content

Commit

Permalink
chore(github): cancel in progress workflows when new pushed
Browse files Browse the repository at this point in the history
  • Loading branch information
nowNick committed Oct 13, 2023
1 parent 8f6ee73 commit 1319eb6
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build_and_test_with_resty_events.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: Build and test - with resty_events

concurrency:
# for PR's cancel the running task, if another commit is pushed
group: ${{ github.workflow }} ${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

on:
pull_request: {}
workflow_dispatch: {}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/build_and_test_with_worker_events.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: Build and test - with worker_events

concurrency:
# for PR's cancel the running task, if another commit is pushed
group: ${{ github.workflow }} ${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

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

concurrency:
# for PR's cancel the running task, if another commit is pushed
group: ${{ github.workflow }} ${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

on:
pull_request: {}
workflow_dispatch: {}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/sast.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: SAST

concurrency:
# for PR's cancel the running task, if another commit is pushed
group: ${{ github.workflow }} ${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

on:
pull_request:
paths:
Expand Down

0 comments on commit 1319eb6

Please sign in to comment.