Skip to content

Commit

Permalink
Merge pull request #311 from tienvx/use-github-actions-feature
Browse files Browse the repository at this point in the history
Use Github Actions feature to cancel previous runs
  • Loading branch information
YOU54F committed May 11, 2023
2 parents 52f2be4 + e3203b9 commit f69b41b
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
schedule:
- cron: 0 6 1 * *

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

jobs:
php-cs:
runs-on: ubuntu-latest
Expand All @@ -16,11 +20,6 @@ jobs:
php: [ '8.2' ]

steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v3
name: Checkout repository

Expand Down Expand Up @@ -53,10 +52,6 @@ jobs:
name: PHP ${{ matrix.php }} on ${{ matrix.operating-system }} with ${{ matrix.dependencies }} dependencies

steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v3
name: Checkout repository

Expand Down

0 comments on commit f69b41b

Please sign in to comment.