Skip to content

Commit

Permalink
Add concurrency for reducing amount of actions
Browse files Browse the repository at this point in the history
  • Loading branch information
takahirom committed May 7, 2023
1 parent eb36a34 commit d19105f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/CompareScreenshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
- main
pull_request:

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

jobs:
compare-screenshot-test:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/CompareScreenshotComment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
types:
- completed

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}-${{ github.event.workflow_run.id }}
cancel-in-progress: true

jobs:
Comment-CompareScreenshot:
if: >
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/StoreScreenshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
- main
pull_request:

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

jobs:
store-screenshot-test:
runs-on: ubuntu-latest
Expand Down

0 comments on commit d19105f

Please sign in to comment.