mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
19 lines
640 B
YAML
19 lines
640 B
YAML
name: _check
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
types: [opened, synchronize, reopened, edited]
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- 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 }}
|