Skip to content

Commit

Permalink
use concurrency to cancel in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
swalker326 committed Aug 2, 2024
1 parent 169334e commit fff6341
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@ permissions:
actions: write
contents: read

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

jobs:
lint:
name: ⬣ Biome Check
runs-on: ubuntu-latest
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/[email protected]

- name: ⬇️ Checkout repo
uses: actions/checkout@v3

Expand All @@ -37,7 +38,7 @@ jobs:
- name: Setup Biome
uses: biomejs/[email protected]
with:
biome-version: 1.8.3
version: 1.8.3

- name: 🔬 Lint
run: pnpm check
Expand All @@ -46,8 +47,6 @@ jobs:
name: ʦ TypeScript
runs-on: ubuntu-latest
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/[email protected]

- name: ⬇️ Checkout repo
uses: actions/checkout@v3
Expand Down

0 comments on commit fff6341

Please sign in to comment.