Skip to content

ci: drop redundant push:main trigger and remove unreachable notify-irm#266

Merged
DevSecNinja merged 1 commit intomainfrom
ci/reduce-trigger-noise
May 1, 2026
Merged

ci: drop redundant push:main trigger and remove unreachable notify-irm#266
DevSecNinja merged 1 commit intomainfrom
ci/reduce-trigger-noise

Conversation

@DevSecNinja
Copy link
Copy Markdown
Owner

Why

ci.yaml runs on every PR commit AND again on push to main. With branch protection ensuring the merge commit is identical to the last PR head, the post-merge run is duplicate work — and a small flurry of commits causes CI, docs, and label-sync to all churn.

What

  • Drop push: branches: [main] from ci.yaml. PR-only (plus workflow_dispatch).
  • Remove the notify-irm job: gated on github.ref == 'refs/heads/main' && github.event_name == 'push', so without push:main it's unreachable. Pages on PR-validation workflows are low-value anyway (PRs cannot merge if checks fail). Pages on deploy/release workflows still fire on main breakage.

The existing workflow-level concurrency block already cancels superseded runs.

Followup

A forthcoming doc in DevSecNinja/.github will codify this as an org-wide convention.

Mirrors DevSecNinja/truenas-apps#325.

Branch protection ensures the merge commit on main is identical to the last PR head, so re-running CI on push:main is duplicate work and adds noise (especially with rapid follow-up commits triggering both PR and main runs).

The notify-irm job gated on github.ref == 'refs/heads/main' is now unreachable without the push:main trigger; remove it. Pages on PR-validation workflows are low-value anyway (PRs cannot merge if checks fail). Pages on deploy/release workflows still fire on main breakage.

See DevSecNinja/.github docs/workflow-trigger-conventions.md (forthcoming).
@DevSecNinja DevSecNinja merged commit 1935ddf into main May 1, 2026
12 checks passed
@DevSecNinja DevSecNinja deleted the ci/reduce-trigger-noise branch May 1, 2026 14:08
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