chore: update test.yml
This commit is contained in:
parent
d144c0c92d
commit
ea90b5ced9
6
.github/workflows/test.yml
vendored
6
.github/workflows/test.yml
vendored
@ -67,7 +67,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Run eslint on changed files
|
- name: Run eslint on changed files
|
||||||
uses: tj-actions/eslint-changed-files@v19
|
uses: tj-actions/eslint-changed-files@v19
|
||||||
if: github.event_name != 'push'
|
if: github.event_name == 'pull_request'
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.PAT_TOKEN }}
|
token: ${{ secrets.PAT_TOKEN }}
|
||||||
config_path: ".eslintrc.json"
|
config_path: ".eslintrc.json"
|
||||||
@ -80,14 +80,14 @@ jobs:
|
|||||||
- name: Verify Changed files
|
- name: Verify Changed files
|
||||||
uses: tj-actions/verify-changed-files@v15
|
uses: tj-actions/verify-changed-files@v15
|
||||||
id: changed_files
|
id: changed_files
|
||||||
if: github.event_name != 'push'
|
if: github.event_name == 'pull_request'
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
src
|
src
|
||||||
dist
|
dist
|
||||||
|
|
||||||
- name: Commit files
|
- 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: |
|
run: |
|
||||||
git config --local user.email "action@github.com"
|
git config --local user.email "action@github.com"
|
||||||
git config --local user.name "GitHub Action"
|
git config --local user.name "GitHub Action"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user