Skip to content

Commit

Permalink
Update gh action concurrency (#824)
Browse files Browse the repository at this point in the history
* Update gh action concurrency

* trigger GitHub actions
  • Loading branch information
zjb0807 authored Sep 20, 2023
1 parent 79dad4f commit 493352d
Showing 1 changed file with 4 additions and 18 deletions.
22 changes: 4 additions & 18 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,13 @@ on:
paths-ignore:
- '**/README.md'

jobs:
cancel-prev-runs:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
# Only cancel non-master branch runs
if: ${{ github.ref != 'refs/heads/master' }}
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
eth-providers:
runs-on: self-hosted
needs: cancel-prev-runs
steps:
- name: checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -53,7 +46,6 @@ jobs:

eth-rpc-adaptor:
runs-on: self-hosted
needs: cancel-prev-runs
steps:
- name: checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -89,7 +81,6 @@ jobs:

waffle-examples:
runs-on: self-hosted
needs: cancel-prev-runs
steps:
- name: checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -125,7 +116,6 @@ jobs:

hardhat-tutorials:
runs-on: self-hosted
needs: cancel-prev-runs
steps:
- name: checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -160,7 +150,6 @@ jobs:

truffle-tutorials:
runs-on: self-hosted
needs: cancel-prev-runs
steps:
- name: checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -196,7 +185,6 @@ jobs:

tests:
runs-on: ubuntu-latest
needs: cancel-prev-runs
steps:
- name: checkout
uses: actions/checkout@v3
Expand All @@ -223,7 +211,6 @@ jobs:

e2e-tests:
runs-on: self-hosted
needs: cancel-prev-runs
steps:
- name: checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -272,7 +259,6 @@ jobs:

tutorials-tests:
runs-on: self-hosted
needs: cancel-prev-runs
steps:
- name: checkout
uses: actions/checkout@v3
Expand Down

0 comments on commit 493352d

Please sign in to comment.