ci: auto-generate skills on toolbox version updates#177
Open
twishabansal wants to merge 4 commits into
Open
Conversation
Adds a Cloud Build pipeline and script to regenerate skills when toolbox_version.txt changes. Skill generation reads only the upstream prebuilt config, so no database connection is required.
Replaces the Cloud Build pipeline (which needed SSH keys and Secret Manager tokens) with a GitHub Actions workflow. On PRs that bump toolbox_version.txt, it regenerates skills and commits them back to the PR branch using the built-in GITHUB_TOKEN. Moves the generator script under .github/scripts/.
The upstream prebuilt config moved from a top-level toolsets: block to per-toolset YAML documents (kind: toolset / name:) in toolbox v1.2.0. The old awk parser found zero toolsets on v1.2.0+, so the validation passed vacuously. Parse the new format so unsupported upstream toolsets are detected.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.github/workflows/skills-generate.yml) that regenerates thecloud-sql-postgres-*skills when a PR bumpstoolbox_version.txt, and commits them back to the PR branch via the built-inGITHUB_TOKEN..github/scripts/generate_skills.sh, which validates upstream toolsets against theSKILLSarray, then regenerates each skill offline (no DB; requires toolbox ≥ 1.5.0).kind: toolsetconfig format (toolbox 1.2.0+).Test plan
SKILLSfails the job before generation. (test: skills-gen toolset validation failure #179)