File tree Expand file tree Collapse file tree 1 file changed +1
-19
lines changed Expand file tree Collapse file tree 1 file changed +1
-19
lines changed Original file line number Diff line number Diff line change @@ -222,33 +222,15 @@ jobs:
222
222
- name : Check if UI-related files changed
223
223
id : check-changes
224
224
run : |
225
- # Get the base branch
226
225
BASE_BRANCH=${{ github.event.pull_request.base.ref }}
227
-
228
- # Get list of changed files
229
226
CHANGED_FILES=$(git diff --name-only origin/$BASE_BRANCH...HEAD)
230
-
231
- # Define the files we care about in root
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
-
234
- # Check if src/ui directory changed or any of the root files changed
235
227
SHOULD_BUILD=false
236
228
237
- # Check if any file in src/ui changed
238
- if echo "$CHANGED_FILES" | grep -q -E "^(src/ui|tests/ui)/"; then
229
+ if echo "$CHANGED_FILES" | grep -q "^src/ui/"; then
239
230
echo "UI source files changed"
240
231
SHOULD_BUILD=true
241
232
fi
242
233
243
- # Check if any of the root configuration files changed
244
- for file in $ROOT_FILES; do
245
- if echo "$CHANGED_FILES" | grep -q "^${file}$"; then
246
- echo "Root config file changed: $file"
247
- SHOULD_BUILD=true
248
- break
249
- fi
250
- done
251
-
252
234
echo "should_build=$SHOULD_BUILD" >> $GITHUB_OUTPUT
253
235
echo "Should build: $SHOULD_BUILD"
254
236
You can’t perform that action at this time.
0 commit comments