Skip to content

Commit

Permalink
add cancel-workflow-action
Browse files Browse the repository at this point in the history
  • Loading branch information
nabim777 committed Aug 30, 2023
1 parent 5b01431 commit d8b086b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ on:
jobs:
build:
runs-on: ubuntu-latest
steps:
steps:
- name: Cancel previous runs
uses: styfle/[email protected]
with:
all_but_latest: true
access_token: ${{ secrets.GITHUB_TOKEN }}

- name: Checkout code
uses: actions/checkout@v2

Expand All @@ -35,4 +41,4 @@ jobs:
- name: Run bats test
working-directory: ./
run: |
bats tests/<path-to-the-test-file>
bats tests/*.bats

0 comments on commit d8b086b

Please sign in to comment.