Skip to content

Commit 52f795b

Browse files
Also run check in case there are changes in the rustdoc-gui tools
1 parent 3994406 commit 52f795b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/ci/scripts/should-skip-this.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ elif ! git diff --quiet "$BASE_COMMIT" -- src/tools/clippy src/tools/rustfmt; th
2626
# There is not an easy blanket search for subtrees. For now, manually list
2727
# the subtrees.
2828
echo "Executing the job since clippy or rustfmt subtree was updated"
29-
elif (git diff --name-only HEAD^ | grep --quiet src/test/rustdoc-gui) || \
30-
(git diff --name-only HEAD^ | grep --quiet src/librustdoc); then
29+
elif ! (git diff --quiet "$BASE_COMMIT" -- \
30+
src/test/rustdoc-gui \
31+
src/librustdoc \
32+
src/tools/rustdoc-gui); then
3133
# There was a change in either rustdoc or in its GUI tests.
3234
echo "Executing the job since rustdoc was updated"
3335
else

0 commit comments

Comments
 (0)