chore: Trigger the chart releaser workflow on both main and release branches - #192
Conversation
…ranches too This makes it easier to test upstream releases of the chart
Reviewer's GuideUpdated GitHub Actions chart releaser workflow to trigger on main and release branches, conditionally mark main releases as latest, and cleaned up the cr.yaml config. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
|
/cherry-pick release-1.7 |
|
@rm3l: once the present PR merges, I will cherry-pick it on top of DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
There was a problem hiding this comment.
Hey @rm3l - I've reviewed your changes - here's some feedback:
- The branch filter 'release-1.[0-9]+' uses a regex-like pattern but GitHub Actions only supports glob patterns—consider replacing it with something like 'release-1.*' to catch all release branches.
- If you want chart releases to flow from version tags instead of branch pushes, consider adding a push: tags: ['v*'] trigger so the releaser action runs on new semver tags as well.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The branch filter 'release-1.[0-9]+' uses a regex-like pattern but GitHub Actions only supports glob patterns—consider replacing it with something like 'release-1.*' to catch all release branches.
- If you want chart releases to flow from version tags instead of branch pushes, consider adding a push: tags: ['v*'] trigger so the releaser action runs on new semver tags as well.
## Individual Comments
### Comment 1
<location> `.github/workflows/release.yaml:7` </location>
<code_context>
push:
branches:
- main
+ - release-1.[0-9]+
paths:
- "charts/**"
</code_context>
<issue_to_address>
The branch pattern may not match as intended in GitHub Actions.
GitHub Actions uses glob patterns, not full regex. 'release-1.[0-9]+' won't match as intended; use 'release-1.*' or list branches explicitly to cover all versions.
</issue_to_address>
### Comment 2
<location> `.github/workflows/release.yaml:40` </location>
<code_context>
uses: helm/chart-releaser-action@cae68fefc6b5f367a0275617c9f83181ba54714f # v1.7.0
with:
config: cr.yaml
+ mark_as_latest: ${{ github.ref == 'refs/heads/main' }}
env:
CR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
</code_context>
<issue_to_address>
Boolean expression may not yield the expected string value.
Check the chart-releaser-action documentation to confirm whether 'mark_as_latest' expects a boolean or a specific string, as GitHub Actions may coerce types unexpectedly.
</issue_to_address>
<suggested_fix>
<<<<<<< SEARCH
mark_as_latest: ${{ github.ref == 'refs/heads/main' }}
=======
mark_as_latest: ${{ github.ref == 'refs/heads/main' && 'true' || 'false' }}
>>>>>>> REPLACE
</suggested_fix>Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
|
@rm3l: new pull request created: #193 DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |



Description of the change
This makes it easier to test upstream releases of the chart
Which issue(s) does this PR fix or relate to
—
How to test changes / Special notes to the reviewer
Tests done in https://github.com/rm3l/rhdh-chart/releases
Checklist
Chart.yamlaccording to Semantic Versioning.values.yamland added to the corresponding README.md. The pre-commit utility can be used to generate the necessary content. Usepre-commit run -ato apply changes. The pre-commit Workflow will do this automatically for you if needed.pre-commithook.ct lintcommand.Summary by Sourcery
Extend the Helm chart releaser workflow to run on release branches as well as main, conditionally mark the main branch release as latest, and tidy up the releaser config file.
CI:
Chores: