Skip to content

feat: add librarian action#6150

Draft
noahdietz wants to merge 4 commits into
googleapis:mainfrom
noahdietz:librarian-action
Draft

feat: add librarian action#6150
noahdietz wants to merge 4 commits into
googleapis:mainfrom
noahdietz:librarian-action

Conversation

@noahdietz
Copy link
Copy Markdown
Contributor

@noahdietz noahdietz commented May 22, 2026

Adds a root-level custom action for installing librarian based on the version specified in the triggering repo's librarian.yaml or latest. The version specified in the uses directive e.g. @main is the GitHub ref to use in pulling the custom action definition, not the version of librarian the action would ultimately use.

- name: Run librarian tidy
uses: googleapis/librarian@main
run: librarian tidy

Fixes #5683

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new composite GitHub Action to set up Go, protoc, and the Librarian tool. The review highlights the need for more robust version parsing in the installation script and suggests referencing the action's own go.mod file to ensure the correct Go version is used regardless of the caller's repository structure.

Comment thread action.yaml
Comment thread action.yaml Outdated
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.

librarian: consider providing a GitHub action for easy use

1 participant