From 5a7d15d2841d7becb7b7ad6f02596d691d448406 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Vasconcellos?= Date: Fri, 29 Mar 2024 03:28:00 -0300 Subject: [PATCH] Don't fail CI job if `dorny/paths-filter` step fails (#2263) Don't fail CI job if `dorny/paths-filter` step fails --- .github/workflows/ci.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a5d31e47bbe2..b5ec9daf15bb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -123,6 +123,7 @@ jobs: uses: actions/checkout@v4 - uses: dorny/paths-filter@v3 + continue-on-error: true id: filter with: filters: | @@ -139,13 +140,13 @@ jobs: - 'Cargo.lock' - name: Setup Rust and Prisma - if: steps.filter.outputs.changes == 'true' + if: steps.filter.outcome != 'success' || steps.filter.outputs.changes == 'true' uses: ./.github/actions/setup-rust with: restore-cache: 'false' - name: Run rustfmt - if: steps.filter.outputs.changes == 'true' + if: steps.filter.outcome != 'success' || steps.filter.outputs.changes == 'true' run: cargo fmt --all -- --check clippy: @@ -177,6 +178,7 @@ jobs: uses: actions/checkout@v4 - uses: dorny/paths-filter@v3 + continue-on-error: true id: filter with: filters: | @@ -195,13 +197,13 @@ jobs: - 'Cargo.lock' - name: Setup System and Rust - if: steps.filter.outputs.changes == 'true' + if: steps.filter.outcome != 'success' || steps.filter.outputs.changes == 'true' uses: ./.github/actions/setup-system with: token: ${{ secrets.GITHUB_TOKEN }} - name: Run Clippy - if: steps.filter.outputs.changes == 'true' + if: steps.filter.outcome != 'success' || steps.filter.outputs.changes == 'true' uses: actions-rs-plus/clippy-check@v2 with: args: --workspace --all-features