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
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Download data from API
|
||||
with:
|
||||
fetch-depth: 2
|
||||
- name: download data from api
|
||||
run: |
|
||||
mkdir -p scripts/data
|
||||
curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json
|
||||
- id: files
|
||||
uses: jitterbit/get-changed-files@v1
|
||||
- run: npm install
|
||||
- run: npm run channels:lint -- ${{ steps.files.outputs.added_modified }}
|
||||
- run: npm run channels:validate -- ${{ steps.files.outputs.added_modified }}
|
||||
- uses: actions/setup-node@v2
|
||||
if: ${{ !env.ACT && steps.files.outputs.any_changed == 'true' }}
|
||||
with:
|
||||
node-version: '14'
|
||||
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