File tree Expand file tree Collapse file tree 1 file changed +16
-9
lines changed Expand file tree Collapse file tree 1 file changed +16
-9
lines changed Original file line number Diff line number Diff line change @@ -15,16 +15,23 @@ jobs:
15
15
- uses : actions/checkout@v4
16
16
with :
17
17
fetch-depth : 2
18
- - uses : tj-actions/ changed- files@v45
18
+ - name : changed files
19
19
id : files
20
- with :
21
- files_yaml : |
22
- js:
23
- - tests/**/*.{js,ts}
24
- - scripts/**/*.{js,mts,ts}
25
- - sites/**/*.{js,ts}
26
- channels:
27
- - sites/**/*.channels.xml
20
+ run : |
21
+ JS_ANY_CHANGED=false
22
+ JS_ALL_CHANGED_FILES=$(git diff --name-only tests/**/*.js tests/**/*.ts scripts/**/*.js scripts/**/*.mts scripts/**/*.ts sites/**/*.js sites/**/*.ts | tr '\n' ' ')
23
+ if [ -n "${JS_ALL_CHANGED_FILES}" ]; then
24
+ JS_ANY_CHANGED=true
25
+ fi
26
+ echo "js_all_changed_files=$JS_ALL_CHANGED_FILES" >> "$GITHUB_OUTPUT"
27
+ echo "js_any_changed=$JS_ANY_CHANGED" >> "$GITHUB_OUTPUT"
28
+ CHANNELS_ANY_CHANGED=false
29
+ CHANNELS_ALL_CHANGED_FILES=$(git diff --name-only sites/**/*.channels.xml | tr '\n' ' ')
30
+ if [ -n "${CHANNELS_ALL_CHANGED_FILES}" ]; then
31
+ CHANNELS_ANY_CHANGED=true
32
+ fi
33
+ echo "channels_all_changed_files=$CHANNELS_ALL_CHANGED_FILES" >> "$GITHUB_OUTPUT"
34
+ echo "channels_any_changed=$CHANNELS_ANY_CHANGED" >> "$GITHUB_OUTPUT"
28
35
- uses : actions/setup-node@v4
29
36
if : ${{ !env.ACT && (steps.files.outputs.js_any_changed == 'true' || steps.files.outputs.channels_any_changed == 'true') }}
30
37
with :
You can’t perform that action at this time.
0 commit comments