Update validation.yml

This commit is contained in:
William Harrison
2025-01-02 18:56:36 +08:00
parent f78a7beddc
commit 7948783223
+7 -1
View File
@@ -38,8 +38,14 @@ jobs:
- run: npm install
- name: Get modified files
if: github.event_name == 'pull_request'
id: files
run: |
echo "::set-output name=files::$(git diff --name-only ${{ github.event.before }} ${{ github.sha }})"
- run: npm test
env:
EVENT: ${{ github.event_name }}
PR_AUTHOR: ${{ github.event.pull_request.user.login }}
MODIFIED_FILES: ${{ env.MODIFIED_FILES }}
MODIFIED_FILES: ${{ steps.files.outputs.files || '' }}