From e8fe5632af529e54c5a590d7e2073f005fe10919 Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Sat, 7 Oct 2023 05:28:36 +0300 Subject: [PATCH] Update deploy.yml --- .github/workflows/check.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 1921cd9f..e71253fb 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -7,15 +7,20 @@ jobs: check: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: - fetch-depth: 0 - - id: files - uses: tj-actions/changed-files@v12.2 + fetch-depth: 2 + - uses: actions/setup-node@v3 + if: ${{ !env.ACT }} 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 if: steps.files.outputs.any_changed == 'true' - run: | - npm install - npm run db:validate -- ${{ steps.files.outputs.all_changed_files }} + run: npm run db:validate -- ${{ steps.files.outputs.all_changed_files }}