mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-04 12:13:27 +00:00
Don't fail CI job if dorny/paths-filter
step fails (#2263)
Don't fail CI job if `dorny/paths-filter` step fails
This commit is contained in:
parent
5b40cefe37
commit
5a7d15d284
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue