From ea90b5ced9a0c8d0d18077656d2ecada2bb67ff3 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Thu, 15 Jun 2023 12:33:00 -0600 Subject: [PATCH] chore: update test.yml --- .github/workflows/test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0b51ec28..1b7158f8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -67,7 +67,7 @@ jobs: - name: Run eslint on changed files uses: tj-actions/eslint-changed-files@v19 - if: github.event_name != 'push' + if: github.event_name == 'pull_request' with: token: ${{ secrets.PAT_TOKEN }} config_path: ".eslintrc.json" @@ -80,14 +80,14 @@ jobs: - name: Verify Changed files uses: tj-actions/verify-changed-files@v15 id: changed_files - if: github.event_name != 'push' + if: github.event_name == 'pull_request' with: files: | src dist - name: Commit files - if: steps.changed_files.outputs.files_changed == 'true' && github.event_name != 'push' + if: steps.changed_files.outputs.files_changed == 'true' && github.event_name == 'pull_request' run: | git config --local user.email "action@github.com" git config --local user.name "GitHub Action"