Skip to content

ci: run template integrity on pull requests only - #12

Merged
DeyangChan merged 1 commit into
mainfrom
chore/integrity-pr-only
Jul 30, 2026
Merged

ci: run template integrity on pull requests only#12
DeyangChan merged 1 commit into
mainfrom
chore/integrity-pr-only

Conversation

@DeyangChan

Copy link
Copy Markdown
Contributor

The main ruleset now requires a pull request and requires the integrity check, so the push: branches: [main] trigger only re-ran a check that had already passed on the PR head. Every merge burned two runs instead of one.

workflow_dispatch replaces it, so the check can still be re-run by hand without opening a PR.

Deliberately not applied to .github/workflows/examples/ci.yml.example: deploy.yml.example fires on workflow_run of CI completing on main, so removing CI's push-to-main trigger would mean a consumer's deploy never fires.

Test plan

  • YAML parses; triggers are pull_request and workflow_dispatch.
  • Integrity checks report 0 problem(s) locally.
  • git diff --check clean.
  • This PR's own run proves the check still gates pull requests.

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.
@DeyangChan
DeyangChan merged commit 8793df5 into main Jul 30, 2026
1 check passed
@DeyangChan
DeyangChan deleted the chore/integrity-pr-only branch July 30, 2026 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant