Skip to content

Commit 4742ca0

Browse files
committed
Switch to dorny/paths-filter
1 parent 645483f commit 4742ca0

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.github/workflows/rust.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,19 @@ jobs:
4040
check-files:
4141
runs-on: ubuntu-latest
4242
outputs:
43-
should_skip: ${{ steps.changed-files.outputs.all == '' }}
43+
should_skip: ${{ steps.filter.outputs.code == 'false' }}
4444
steps:
4545
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
46-
- uses: Ana06/get-changed-files@25f79e676e7ea1868813e21465014798211fad8c
47-
id: changed-files
48-
with:
49-
filter: |
50-
*
51-
!**.md
52-
!docs/**
53-
!.github/ISSUE_TEMPLATE/**
54-
!.github/pull_request_template.md
46+
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
47+
id: filter
48+
with:
49+
filters: |
50+
code:
51+
- '**'
52+
- '!**.md'
53+
- '!docs/**'
54+
- '!.github/ISSUE_TEMPLATE/**'
55+
- '!.github/pull_request_template.md'
5556
5657
# Check crate compiles and base cargo check passes
5758
linux-build-lib:

0 commit comments

Comments
 (0)