Repository navigation
🏷️ ci: Sync Helm Chart Tags - #13446
Conversation
|
@codex review |
There was a problem hiding this comment.
Pull request overview
This PR adds a GitHub Actions automation that backfills and maintains chart-<semver> git tags based on helm/librechat/Chart.yaml version bumps on main, and then triggers the existing Helm chart publishing workflow for any newly-created tags.
Changes:
- Added a
sync-helm-chart-tagsworkflow that fetchesmain+tags, creates missingchart-*tags, and dispatches the Helm release workflow. - Added a bash script to scan
main’s first-parent history for chart version changes and create/push missingchart-*tags. - Updated the
helmcharts.ymlworkflow to support manual dispatch with a validatedchart_tag, checkout the exact tag ref, and reducecontentspermissions to read.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
.github/workflows/sync-helm-chart-tags.yml |
New workflow to fetch history/tags on main and run the tag-sync script with tag push + release dispatch enabled. |
.github/workflows/helmcharts.yml |
Adds a manual chart_tag input, validates tag format, checks out the tag ref, and reduces contents permission. |
.github/scripts/sync-helm-chart-tags.sh |
New script to detect chart version introduction commits, create missing chart-* tags, push them, and dispatch releases. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3a6f9c1e43
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. You're on a roll. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
* ci: Sync Helm chart tags * ci: Address Helm tag sync review
* ci: Sync Helm chart tags * ci: Address Helm tag sync review
Summary
I added an automated Helm chart tag sync workflow so chart version bumps on
maincreate missingchart-x.y.ztags at the first commit where that version appeared, starting from the existingchart-1.9.0tag convention.mainhistory forhelm/librechat/Chart.yamlversion changes and creates missingchart-*tags at the corresponding commits.BACKFILL_FROM_VERSIONcutoff so the workflow backfills missed tags after the current chart-tag release scheme began without unexpectedly publishing older pre-scheme chart versions.mainor manually, fetchesmainand tags with validated repository inputs, creates missing chart tags, and dispatches the Helm chart release workflow for newly created tags.release_existing_tagrecovery input to re-dispatch a chart release when a tag exists but the release dispatch needs to be retried.chart_tag, check out the exact tag ref, publish under the repository owner package namespace, and reducecontentspermission from write to read.GITHUB_TOKENpermissions, and avoiding third-party actions in the tag-writing workflow.Change Type
Testing
bash -n .github/scripts/sync-helm-chart-tags.sh..github/scripts/sync-helm-chart-tags.shin dry-run mode and confirmed it would createchart-2.0.4at830d124e4dandchart-2.0.5at566e20b613.RELEASE_EXISTING_TAG=chart-2.0.3 .github/scripts/sync-helm-chart-tags.shin dry-run mode and confirmed it would dispatch the existing tag recovery path..github/workflows/sync-helm-chart-tags.ymland.github/workflows/helmcharts.ymlwith Ruby YAML loading.git diff --check.PUSH_TAGS=trueand confirmed the two expected tags were created and pushed to the simulated remote.Test Configuration:
2.92.0Checklist