mirror of
https://github.com/iptv-org/iptv
synced 2026-03-22 03:41:39 -04:00
Fix line endings
This commit is contained in:
72
.github/workflows/check.yml
vendored
72
.github/workflows/check.yml
vendored
@@ -1,37 +1,37 @@
|
||||
name: check
|
||||
on:
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened]
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- name: Get list of changed files
|
||||
id: files
|
||||
run: |
|
||||
git fetch origin master:master
|
||||
ANY_CHANGED=false
|
||||
ALL_CHANGED_FILES=$(git diff --diff-filter=ACMRT --name-only master -- streams/ | 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@v6
|
||||
if: steps.files.outputs.any_changed == 'true'
|
||||
with:
|
||||
node-version: 22
|
||||
cache: 'npm'
|
||||
- name: Install dependencies
|
||||
if: steps.files.outputs.any_changed == 'true'
|
||||
run: npm install
|
||||
- name: Validate changed files
|
||||
if: steps.files.outputs.any_changed == 'true'
|
||||
run: |
|
||||
npm run playlist:lint -- ${{ steps.files.outputs.all_changed_files }}
|
||||
name: check
|
||||
on:
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened]
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- name: Get list of changed files
|
||||
id: files
|
||||
run: |
|
||||
git fetch origin master:master
|
||||
ANY_CHANGED=false
|
||||
ALL_CHANGED_FILES=$(git diff --diff-filter=ACMRT --name-only master -- streams/ | 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@v6
|
||||
if: steps.files.outputs.any_changed == 'true'
|
||||
with:
|
||||
node-version: 22
|
||||
cache: 'npm'
|
||||
- name: Install dependencies
|
||||
if: steps.files.outputs.any_changed == 'true'
|
||||
run: npm install
|
||||
- name: Validate changed files
|
||||
if: steps.files.outputs.any_changed == 'true'
|
||||
run: |
|
||||
npm run playlist:lint -- ${{ steps.files.outputs.all_changed_files }}
|
||||
npm run playlist:validate -- ${{ steps.files.outputs.all_changed_files }}
|
||||
Reference in New Issue
Block a user