ci(lint): 👷 use concurrency instead to cancel previous run

This commit is contained in:
alistair3149 2024-09-04 16:08:28 -04:00
parent 5cfbc433b7
commit cfd5606430
No known key found for this signature in database

View file

@ -12,16 +12,15 @@ on:
- "!**dependabot/**"
- "!**release-please--**"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.12.1
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v4
with:
fetch-depth: 0 # OR "2" -> To retrieve the preceding commit.