Skip to content

Commit

Permalink
chore: update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Jun 15, 2023
1 parent d144c0c commit ea90b5c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit ea90b5c

Please sign in to comment.