Skip to content

Commit

Permalink
Don't fail CI job if dorny/paths-filter step fails (#2263)
Browse files Browse the repository at this point in the history
Don't fail CI job if `dorny/paths-filter` step fails
  • Loading branch information
HeavenVolkoff committed Mar 29, 2024
1 parent 5b40cef commit 5a7d15d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ jobs:
uses: actions/checkout@v4

- uses: dorny/paths-filter@v3
continue-on-error: true
id: filter
with:
filters: |
Expand All @@ -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:
Expand Down Expand Up @@ -177,6 +178,7 @@ jobs:
uses: actions/checkout@v4

- uses: dorny/paths-filter@v3
continue-on-error: true
id: filter
with:
filters: |
Expand All @@ -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
Expand Down

0 comments on commit 5a7d15d

Please sign in to comment.