Update validation.yml

This commit is contained in:
William Harrison
2022-11-29 10:43:20 +08:00
committed by GitHub
parent c2380f9b24
commit 629be87cda
+5 -6
View File
@@ -8,24 +8,24 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get changed files
- name: Get Files
id: changed-files
uses: tj-actions/changed-files@v34
with:
files: |
sub-logs/**
reserved/**
- name: Install modules
- name: Install Modules
if: steps.changed-files.outputs.any_changed == 'true'
run: yarn
- name: Run tests
- name: Run Tests
if: steps.changed-files.outputs.any_changed == 'true'
id: tests
run: yarn test
env:
FILES: ${{ steps.changed-files.outputs.all_changed_files }}
actions_path: ${{ github.workspace }}
- name: Comment Results
- name: Comment
if: steps.tests.outputs.shouldComment == 'true'
uses: mshick/add-pr-comment@v1
with:
@@ -42,5 +42,4 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }}
proxy-url: https://api.is-a-good.dev/github-proxy/
repo-token-user-login: 'github-actions[bot]' # The user.login for temporary GitHub tokens
allow-repeats: false # This is the default
allow-repeats: false # Default: false