Skip to content

ci: remove redundant push-to-main triggers from read-only PR workflows - #15408

Merged
lqiu96 merged 1 commit into
mainfrom
ci/remove-push-main-triggers
Dec 2, 2026
Merged

lqiu96 merged 1 commit into
mainfrom
ci/remove-push-main-triggers

Conversation

@lqiu96

@lqiu96 lqiu96 commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

Remove push: branches: [main] from 15 read-only PR workflows (google-auth-library-java-ci.yaml, java-bigquery-jdbc-ci.yaml, java-bigtable-conformance.yaml, java-bigtable-emulator.yaml, java-cloud-bom-ci.yaml, java-firestore-ci.yaml, java-pubsub-ci.yaml, java-shared-config-ci.yaml, java-shared-config-downstream-dependencies.yaml, java-shared-config-downstream-maven-plugins.yaml, java-spanner-integration-tests-against-emulator.yaml, java-spanner-jdbc-ci.yaml, java-spanner-jdbc-integration-tests-against-emulator.yaml, java-storage-nio-ci.yaml, and versions.yaml), and drop the now-unused guarded actions/checkout step and contents: read permission from the 14 filter jobs.

Why:

  • None of these 15 workflows specify push.paths, so every merge to main triggers all 15 runs regardless of which files changed. On push, dorny/paths-filter cannot use the Pull Requests API and must clone the repository in 14 filter jobs just to skip or re-run the exact same checks that already ran on the PR.
  • All 15 workflows are read-only checks that do not write to git, publish artifacts, or upload external metrics, matching the rest of the repository (ci.yaml, sdk-platform-java-ci.yaml, showcase.yaml, and repository_sanity.yaml are already pull_request-only).
  • sdk-platform-java-sonar.yaml keeps push: branches: [main] because it uploads main branch analysis to SonarCloud.
  • Removing push makes the 14 dorny/paths-filter workflows pull_request-only, so their filter jobs no longer need the if: ${{ github.event_name != 'pull_request' }} checkout fallback.

@lqiu96
lqiu96 added this pull request to stack #15409 December 2, 2026 20:57
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@lqiu96
lqiu96 removed this pull request from stack #15409 December 2, 2026 21:46
@lqiu96
lqiu96 changed the base branch from ci/remove-noop-javadoc-jobs to main December 2, 2026 21:49
@lqiu96
lqiu96 force-pushed the ci/remove-push-main-triggers branch from a38065d to 5f7846a Compare December 2, 2026 21:49
@lqiu96
lqiu96 requested a review from jinseopkim0 December 2, 2026 21:51
@lqiu96
lqiu96 marked this pull request as ready for review December 2, 2026 21:51
@lqiu96
lqiu96 requested review from a team as code owners December 2, 2026 21:51
@lqiu96
lqiu96 merged commit 42d1df8 into main Dec 2, 2026
211 checks passed
@lqiu96
lqiu96 deleted the ci/remove-push-main-triggers branch December 2, 2026 23:32
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.

2 participants