Skip to content

Commit cf82b40

Browse files
Merge pull request #2719 from iptv-org/freearhey-patch-2
Update check.yml
2 parents 40c9af8 + d410d0e commit cf82b40

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

.github/workflows/check.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,23 @@ jobs:
1515
- uses: actions/checkout@v4
1616
with:
1717
fetch-depth: 2
18-
- uses: tj-actions/changed-files@v45
18+
- name: changed files
1919
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"
2835
- uses: actions/setup-node@v4
2936
if: ${{ !env.ACT && (steps.files.outputs.js_any_changed == 'true' || steps.files.outputs.channels_any_changed == 'true') }}
3037
with:

0 commit comments

Comments
 (0)