mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update _check.yml
This commit is contained in:
parent
d5147e341e
commit
7303fc9eca
1 changed files with 18 additions and 6 deletions
24
.github/workflows/_check.yml
vendored
24
.github/workflows/_check.yml
vendored
|
@ -8,12 +8,24 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Download data from API
|
with:
|
||||||
|
fetch-depth: 2
|
||||||
|
- name: download data from api
|
||||||
run: |
|
run: |
|
||||||
mkdir -p scripts/data
|
mkdir -p scripts/data
|
||||||
curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json
|
curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json
|
||||||
- id: files
|
- uses: actions/setup-node@v2
|
||||||
uses: jitterbit/get-changed-files@v1
|
if: ${{ !env.ACT && steps.files.outputs.any_changed == 'true' }}
|
||||||
- run: npm install
|
with:
|
||||||
- run: npm run channels:lint -- ${{ steps.files.outputs.added_modified }}
|
node-version: '14'
|
||||||
- run: npm run channels:validate -- ${{ steps.files.outputs.added_modified }}
|
cache: 'npm'
|
||||||
|
- uses: tj-actions/changed-files@v12.2
|
||||||
|
id: files
|
||||||
|
with:
|
||||||
|
files: 'sites'
|
||||||
|
- name: validate
|
||||||
|
if: steps.files.outputs.any_changed == 'true'
|
||||||
|
run: |
|
||||||
|
npm install
|
||||||
|
npm run channels:lint -- ${{ steps.files.outputs.added_modified }}
|
||||||
|
npm run channels:validate -- ${{ steps.files.outputs.added_modified }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue