mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-22 15:45:28 +08:00
Update check.yml
This commit is contained in:
parent
c20585dd61
commit
b3e3826ee2
19
.github/workflows/check.yml
vendored
19
.github/workflows/check.yml
vendored
@ -10,17 +10,24 @@ jobs:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 2
|
||||
- uses: tj-actions/changed-files@v35
|
||||
- name: changed files
|
||||
id: files
|
||||
with:
|
||||
files: streams/*.m3u
|
||||
- uses: actions/setup-node@v3
|
||||
run: |
|
||||
FILES=streams/*.m3u
|
||||
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' }}
|
||||
with:
|
||||
node-version: 20
|
||||
node-version: 22
|
||||
cache: 'npm'
|
||||
- name: install dependencies
|
||||
if: steps.files.outputs.any_changed == 'true'
|
||||
|
Loading…
x
Reference in New Issue
Block a user