iptv-database/.github/workflows/check.yml

22 lines
544 B
YAML
Raw Normal View History

2022-02-11 21:55:50 -05:00
name: check
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize, reopened, edited]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
2022-02-15 04:09:43 -05:00
with:
fetch-depth: 0
2022-02-11 21:55:50 -05:00
- id: files
uses: tj-actions/changed-files@v12.2
with:
2022-02-25 00:23:51 -05:00
files: 'data'
2022-02-11 21:55:50 -05:00
- name: validate
if: steps.files.outputs.any_changed == 'true'
run: |
npm install
npm run db:validate -- ${{ steps.files.outputs.all_changed_files }}