Skip to content

Commit fdd585d

Browse files
committed
github: narrow ci rebuild trigger to build.yml and submodules only
Signed-off-by: Huang Rui <vowstar@gmail.com>
1 parent 9e1bb15 commit fdd585d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ jobs:
4545
echo "No base SHA available; building all project directories."
4646
CHANGED="$ALL_DIRS"
4747
else
48-
# If the workflow file or any submodule reference changed, rebuild everything.
49-
if git diff --name-only "$BASE_SHA" HEAD | grep -qE '^(\.github/workflows/|\.gitmodules$)'; then
50-
echo "Workflow or submodules changed; building all project directories."
48+
# If this build workflow or any submodule reference changed, rebuild everything.
49+
if git diff --name-only "$BASE_SHA" HEAD | grep -qE '^(\.github/workflows/build\.yml$|\.gitmodules$)'; then
50+
echo "build.yml or submodules changed; building all project directories."
5151
CHANGED="$ALL_DIRS"
5252
else
5353
CHANGED=$(git diff --name-only "$BASE_SHA" HEAD | awk -F/ 'NF>1 {print $1}' | sort -u)

0 commit comments

Comments
 (0)