File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 84
84
echo "Updated existing preview comment"
85
85
else
86
86
echo "No preview comment found to update"
87
- fi
87
+ fi
Original file line number Diff line number Diff line change @@ -224,22 +224,22 @@ jobs:
224
224
run : |
225
225
# Get the base branch
226
226
BASE_BRANCH=${{ github.event.pull_request.base.ref }}
227
-
227
+
228
228
# Get list of changed files
229
229
CHANGED_FILES=$(git diff --name-only origin/$BASE_BRANCH...HEAD)
230
-
230
+
231
231
# Define the files we care about in root
232
232
ROOT_FILES="package.json package-lock.json jest.config.cjs jest.setup.ts eslint.config.js cypress.config.ts .prettierrc .prettierignore tsconfig.json tsconfig.base.json tsconfig.test.json tsconfig.cypress.json"
233
-
233
+
234
234
# Check if src/ui directory changed or any of the root files changed
235
235
SHOULD_BUILD=false
236
-
236
+
237
237
# Check if any file in src/ui changed
238
238
if echo "$CHANGED_FILES" | grep -q -E "^(src/ui|tests/ui)/"; then
239
239
echo "UI source files changed"
240
240
SHOULD_BUILD=true
241
241
fi
242
-
242
+
243
243
# Check if any of the root configuration files changed
244
244
for file in $ROOT_FILES; do
245
245
if echo "$CHANGED_FILES" | grep -q "^${file}$"; then
@@ -248,7 +248,7 @@ jobs:
248
248
break
249
249
fi
250
250
done
251
-
251
+
252
252
echo "should_build=$SHOULD_BUILD" >> $GITHUB_OUTPUT
253
253
echo "Should build: $SHOULD_BUILD"
254
254
@@ -321,4 +321,4 @@ jobs:
321
321
322
322
- name : Skip build notification
323
323
if : steps.check-changes.outputs.should_build == 'false'
324
- run : echo "Skipping UI preview build - no relevant files changed"
324
+ run : echo "Skipping UI preview build - no relevant files changed"
You can’t perform that action at this time.
0 commit comments