From 4b41f43a2265419f7c00280f21bfd6ab61ba9cb8 Mon Sep 17 00:00:00 2001 From: Nugine Date: Fri, 11 Oct 2024 10:54:35 +0800 Subject: [PATCH] ci: fix skip-check --- .github/workflows/ci.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 655357b..ca39f87 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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 @@ -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