mirror of
https://github.com/iptv-org/database.git
synced 2024-11-29 21:59:35 -05:00
21 lines
544 B
YAML
21 lines
544 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
|
|
with:
|
|
fetch-depth: 0
|
|
- id: files
|
|
uses: tj-actions/changed-files@v12.2
|
|
with:
|
|
files: 'data'
|
|
- name: validate
|
|
if: steps.files.outputs.any_changed == 'true'
|
|
run: |
|
|
npm install
|
|
npm run db:validate -- ${{ steps.files.outputs.all_changed_files }}
|