-
Notifications
You must be signed in to change notification settings - Fork 14.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: helm chart deploy to open PRs to now-protected gh-pages branch #31155
Conversation
Cleaning up the mess I created by deleting the `gh-pages` branch by mistake while deleting hundreds of stale branches in the repo. The changes here make it such that pushing a new helm chart version will now open a PR against the now-protected `gh-pages` branch, require a review and merge to be deployed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh... don't think I've seen it show this before. Neat!
@@ -1,4 +1,4 @@ | |||
name: Lint and Test Charts | |||
name: "Helm: lint and test charts" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice improvement... I'll bet half the people that see this think it's eslint and dataviz charts :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's been bugging me for a moment. Making the repo a better place, one line at a time.
name: Release Charts | ||
# This workflow automates the release process for Helm charts. | ||
# The workflow creates a new branch for the release and opens a pull request against the 'gh-pages' branch, | ||
# allowing the changes to be reviewed and merged manually. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably expand the code owners for these reviews... maybe you want to be one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Don't see any risks here... like the approach, love the notes :D
Cleaning up the mess I created by deleting the
gh-pages
branch by mistake while deleting hundreds of stale branches in the repo.The changes here make it such that pushing a new helm chart version will now open a PR against the now-protected
gh-pages
branch, require a review and merge to be deployed.Testing now with:
Logs / iterations can be followed here -> https://github.com/apache/superset/actions/workflows/superset-helm-release.yml
The approach here is to:
helm-publish-{SHA}
chart-releaser-action
that the branch we're working with is NOTgh-pages
(protected, can't push there), but instead is a temporary branch