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:
parent
d144c0c92d
commit
ea90b5ced9
1 changed files with 3 additions and 3 deletions
6
.github/workflows/test.yml
vendored
6
.github/workflows/test.yml
vendored
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue