Skip to content

ci: stop running push-triggered CI on renovate branches - #3873

Draft
nameless-mc wants to merge 1 commit into
mainfrom
ci/drop-renovate-push-trigger
Draft

ci: stop running push-triggered CI on renovate branches#3873
nameless-mc wants to merge 1 commit into
mainfrom
ci/drop-renovate-push-trigger

Conversation

@nameless-mc

Copy link
Copy Markdown
Contributor

Why

The test and lint workflows are triggered by both push (on main and renovate/**) and pull_request. Since Renovate always opens a PR for its branches, every commit on a renovate branch runs the same CI twice: once for the push event and once for the pull_request event. Renovate PRs account for most CI runs in this repository, so this duplication roughly doubles the CI workload for no additional signal.

What

Remove renovate/** from the push trigger of test.yml and lint.yml. Renovate PRs are still fully covered by the pull_request trigger, and pushes to main keep running CI as before.

Renovate's automerge in this repository is PR-based (automergeType defaults to "pr"; the shared cybozu/renovate-config only uses branch automerge for the CircleCI manager), so it relies on PR checks and does not need push-triggered runs. If branch automerge is ever enabled for npm, the push trigger would need to be restored.

How to test

This is a trigger-only change and cannot be exercised locally:

  • Verified the YAML with Prettier and confirmed no other workflow references renovate/** (grep -rn renovate .github/workflows/)
  • After merging, renovate branches should show a single CI run per commit (pull_request only)

Checklist

  • Read CONTRIBUTING.md
  • Updated documentation if it is required.
  • Added tests if it is required.
  • Passed pnpm lint and pnpm test on the root directory.

The test and lint workflows are triggered by both push (main and
renovate/**) and pull_request, so every commit on a renovate branch
runs the same CI twice: once for the push and once for the PR.

Remove renovate/** from the push trigger and let the pull_request
trigger cover renovate PRs. Renovate's automerge for this repository
is PR-based (automergeType defaults to "pr"; the shared
cybozu/renovate-config only uses branch automerge for CircleCI), so
it relies on PR checks and does not need push-triggered runs.
@nameless-mc nameless-mc self-assigned this Jul 13, 2026
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