Skip to content

Commit

Permalink
Update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Jun 15, 2023
1 parent 00122eb commit 19ec1d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Expand Up @@ -67,7 +67,7 @@ jobs:
- name: Run eslint on changed files
uses: tj-actions/eslint-changed-files@v19
if: github.event_name == 'pull_request'
if: github.event_name != 'push'
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 == 'pull_request'
if: github.event_name != 'push'
with:
files: |
src
dist
- name: Commit files
if: steps.changed_files.outputs.files_changed == 'true' && github.event_name == 'pull_request'
if: steps.changed_files.outputs.files_changed == 'true' && github.event_name != 'push'
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
Expand Down

0 comments on commit 19ec1d1

Please sign in to comment.