From 0e6a155cc0736b6f8911766fa79b338846bb721d Mon Sep 17 00:00:00 2001 From: DeyangChan Date: Thu, 30 Jul 2026 22:26:37 +0800 Subject: [PATCH] ci: run template integrity on pull requests only The main ruleset requires a pull request and requires this check, so a run on the merge commit repeats a check that already passed. workflow_dispatch keeps a manual re-run available. --- .github/workflows/template-integrity.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/template-integrity.yml b/.github/workflows/template-integrity.yml index 7f8b4ed..e7abab6 100644 --- a/.github/workflows/template-integrity.yml +++ b/.github/workflows/template-integrity.yml @@ -7,10 +7,12 @@ name: Template integrity # Instantiating the template? Delete this workflow and copy the scaffolds in # .github/workflows/examples/ instead (README.md → Day-1 checklist, step 7). +# No push trigger: the `main` ruleset requires a pull request and requires this +# check, so a run on the merge commit would only repeat what already passed. +# Use workflow_dispatch to re-run it by hand. on: pull_request: - push: - branches: [main] + workflow_dispatch: permissions: contents: read