Skip to content

ci: skip librarian setup in librarian_tidy when unmodified - #9908

Merged
quirogas merged 1 commit into
googleapis:mainfrom
quirogas:ci/librarian-tidy-skip-unmodified
Nov 19, 2026
Merged

quirogas merged 1 commit into
googleapis:mainfrom
quirogas:ci/librarian-tidy-skip-unmodified

Conversation

@quirogas

Copy link
Copy Markdown
Contributor

Description

Skips installing Librarian in librarian_tidy when librarian.yaml is unchanged.

Impact

Cuts untouched pull request check times from minutes to seconds.

Changes

  • Gate googleapis/librarian setup behind steps.changes.outputs.librarian == 'true' and include .github/workflows/librarian_tidy.yml in the path filter.
  • Add push trigger for main with fetch-depth: 2, timeout-minutes: 10, and pull-request-scoped cancel-in-progress.
  • Remove unused V=$(librarian config get version ...) command from the failure message block.

Testing

  • Validated workflow YAML syntax and verified path filter conditions match librarian.yaml and the workflow file itself.

Alternatives

  • Leaving googleapis/librarian unguarded builds Go and protoc on every pull request even when librarian.yaml was not modified.
  • Using top-level workflow paths: filters was rejected because skipped workflow runs leave Required status checks pending.

For #9444

@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.

@quirogas
quirogas marked this pull request as ready for review November 19, 2026 21:12
@quirogas
quirogas requested a review from a team as a code owner November 19, 2026 21:12
@quirogas
quirogas enabled auto-merge (squash) November 19, 2026 21:16
@quirogas
quirogas merged commit 853da76 into googleapis:main Nov 19, 2026
54 checks passed
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