Update check.yml

pull/20711/head
freearhey 3 months ago
parent c20585dd61
commit b3e3826ee2

@ -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'

Loading…
Cancel
Save