mirror of
https://github.com/iptv-org/database.git
synced 2024-11-22 10:54:11 -05:00
Update deploy.yml
This commit is contained in:
parent
61df4787e9
commit
e8fe5632af
1 changed files with 13 additions and 8 deletions
21
.github/workflows/check.yml
vendored
21
.github/workflows/check.yml
vendored
|
@ -7,15 +7,20 @@ jobs:
|
||||||
check:
|
check:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 2
|
||||||
- id: files
|
- uses: actions/setup-node@v3
|
||||||
uses: tj-actions/changed-files@v12.2
|
if: ${{ !env.ACT }}
|
||||||
with:
|
with:
|
||||||
files: 'data'
|
node-version: 18
|
||||||
|
cache: 'npm'
|
||||||
|
- uses: tj-actions/changed-files@v35
|
||||||
|
id: files
|
||||||
|
with:
|
||||||
|
files: data/*.csv
|
||||||
|
- name: install dependencies
|
||||||
|
run: npm install
|
||||||
- name: validate
|
- name: validate
|
||||||
if: steps.files.outputs.any_changed == 'true'
|
if: steps.files.outputs.any_changed == 'true'
|
||||||
run: |
|
run: npm run db:validate -- ${{ steps.files.outputs.all_changed_files }}
|
||||||
npm install
|
|
||||||
npm run db:validate -- ${{ steps.files.outputs.all_changed_files }}
|
|
||||||
|
|
Loading…
Reference in a new issue