mirror of
https://github.com/iptv-org/iptv
synced 2025-12-19 11:57:30 -05:00
Merge pull request #20711 from iptv-org/freearhey-patch-2
Update check.yml
This commit is contained in:
19
.github/workflows/check.yml
vendored
19
.github/workflows/check.yml
vendored
@@ -10,17 +10,24 @@ jobs:
|
|||||||
check:
|
check:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 2
|
fetch-depth: 2
|
||||||
- uses: tj-actions/changed-files@v35
|
- name: changed files
|
||||||
id: files
|
id: files
|
||||||
with:
|
run: |
|
||||||
files: streams/*.m3u
|
FILES=streams/*.m3u
|
||||||
- uses: actions/setup-node@v3
|
ANY_CHANGED=false
|
||||||
|
ALL_CHANGED_FILES=$(git diff --name-only "${FILES}" | tr '\n' ' ')
|
||||||
|
if [ -n "${ALL_CHANGED_FILES}" ]; then
|
||||||
|
ANY_CHANGED=true
|
||||||
|
fi
|
||||||
|
echo "all_changed_files=$ALL_CHANGED_FILES" >> "$GITHUB_OUTPUT"
|
||||||
|
echo "any_changed=$ANY_CHANGED" >> "$GITHUB_OUTPUT"
|
||||||
|
- uses: actions/setup-node@v4
|
||||||
if: ${{ !env.ACT && steps.files.outputs.any_changed == 'true' }}
|
if: ${{ !env.ACT && steps.files.outputs.any_changed == 'true' }}
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 22
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
- name: install dependencies
|
- name: install dependencies
|
||||||
if: steps.files.outputs.any_changed == 'true'
|
if: steps.files.outputs.any_changed == 'true'
|
||||||
|
|||||||
Reference in New Issue
Block a user