Skip to content

Commit

Permalink
ci: fix skip-check
Browse files Browse the repository at this point in the history
  • Loading branch information
Nugine committed Oct 11, 2024
1 parent ca3668d commit 4b41f43
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 @@ -14,14 +14,20 @@ on:

jobs:
skip-check:
permissions:
actions: write
contents: read
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
cancel_others: true

develop:
needs: skip-check
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down Expand Up @@ -50,6 +56,7 @@ jobs:

cross-test:
needs: skip-check
if: needs.skip-check.outputs.should_skip != 'true'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -64,8 +71,7 @@ jobs:
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
- if: needs.skip-check.outputs.should_skip != 'true'
run: cargo test --all-features
- run: cargo test --all-features

mint:
needs: skip-check
Expand Down

0 comments on commit 4b41f43

Please sign in to comment.