Skip to content

Commit

Permalink
chore: update cancel workflow action (#3176)
Browse files Browse the repository at this point in the history
  • Loading branch information
nmerget authored Sep 17, 2024
1 parent 6b60078 commit 4712a0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/00-init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ jobs:
name: Init
runs-on: ubuntu-latest
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.12.1

- name: ⏬ Checkout repo
uses: actions/checkout@v4

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
branches:
- "main"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
init:
uses: ./.github/workflows/00-init.yml
Expand Down

0 comments on commit 4712a0a

Please sign in to comment.