Update pr-template.yml

This commit is contained in:
William Harrison authored and GitHub committed 2026-08-19 12:04:02 +08:00
1 parent b70dd71212
commit aefe6a8783
1 file changed
+7 -2
+7 -2
View File
@@ -16,7 +16,6 @@ jobs:
validate:
name: Validate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
@@ -27,7 +26,7 @@ jobs:
continue-on-error: true
env:
PR_BODY: ${{ github.event.pull_request.body }}
run: node scripts/validate-pr-template.js
run: node util/check-pr-template.js
- name: Handle incomplete PR
if: steps.validate.outcome == 'failure'
@@ -133,3 +132,9 @@ jobs:
throw error;
}
}
- name: Fail if PR template is incomplete
if: steps.validate.outcome == 'failure'
run: |
echo "::error::PR template is incomplete."
exit 1