Skip to content

Commit 2d538ea

Browse files
committed
Remove tj-actions/changed-files
1 parent 08c1fac commit 2d538ea

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/linux.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ jobs:
130130
matrix-0: ${{ steps.set-matrix.outputs.matrix-0 }}
131131
matrix-1: ${{ steps.set-matrix.outputs.matrix-1 }}
132132
any_builds: ${{ steps.set-matrix.outputs.any_builds }}
133-
pythonbuild_changed: ${{ steps.changed.outputs.pythonbuild_any_changed }}
133+
pythonbuild_changed: ${{ steps.check-pythonbuild.outputs.changed }}
134134
steps:
135135
- uses: actions/checkout@v4
136136

@@ -167,12 +167,15 @@ jobs:
167167
echo "any_builds=false" >> $GITHUB_OUTPUT
168168
fi
169169
170-
- uses: tj-actions/changed-files@v45
171-
id: changed
172-
with:
173-
files_yaml: |
174-
pythonbuild:
175-
- "src/*.rs"
170+
- name: Check if the `pythonbuild` crate changed
171+
id: check-pythonbuild
172+
run: |
173+
if git diff --quiet ${{ github.event.pull_request.base.sha || 'origin/main' }}...HEAD -- ':src/*.rs'; then
174+
echo "changed=true" >> "$GITHUB_OUTPUT"
175+
else
176+
echo "changed=false" >> "$GITHUB_OUTPUT"
177+
fi
178+
176179
177180
build-0:
178181
needs:

0 commit comments

Comments
 (0)