3
0
Fork 0
mirror of https://github.com/tj-actions/changed-files synced 2025-02-20 21:01:53 +00:00

chore: update test.yml

This commit is contained in:
Tonye Jack 2023-06-15 12:33:00 -06:00 committed by GitHub
parent d144c0c92d
commit ea90b5ced9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"