From 89bf237d539c16ec6414abdd2fac71c440a9d5f3 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Tue, 23 Jul 2024 16:31:36 +0200 Subject: [PATCH] linkcheck: fix filtering of the source files --- ci/linkcheck.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/linkcheck.sh b/ci/linkcheck.sh index 133e22239..14cd53ac9 100755 --- a/ci/linkcheck.sh +++ b/ci/linkcheck.sh @@ -19,14 +19,14 @@ elif [ "$GITHUB_EVENT_NAME" = "pull_request" ] ; then # running in PR CI build exit 1 fi - CHANGED_FILES=$(git diff --name-only $BASE_SHA... | tr '\n' ' ') + CHANGED_FILES=$(git diff --name-only $BASE_SHA... | sed 's#^src/##' | tr '\n' ' ') FLAGS="--no-cache -f $CHANGED_FILES" USE_TOKEN=1 echo "Checking files changed since $BASE_SHA: $CHANGED_FILES" else # running locally COMMIT_RANGE=master... - CHANGED_FILES=$(git diff --name-only $COMMIT_RANGE | tr '\n' ' ') + CHANGED_FILES=$(git diff --name-only $COMMIT_RANGE | sed 's#^src/##' | tr '\n' ' ') FLAGS="-f $CHANGED_FILES" echo "Checking files changed in $COMMIT_RANGE: $CHANGED_FILES"