-
Notifications
You must be signed in to change notification settings - Fork 9
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
Automation to automatically bump semver #538
base: main
Are you sure you want to change the base?
Conversation
This commit adds some new jobs to the PR pipelines. The new jobs get the current `version` and `appVersion` from the helm chart, bumps them using the `semver` tool, commits the changes, pushes them back to the PR, and writes a comment on the PR suggesting the author pull down the changes.
This allows us to only run the pipeline for bumping the helm version on open or reopen. I'm not sure if that's what we want to do or if we want to run this on every PR change.
run: | | ||
# Note: the following account information will not work on GHES | ||
git config user.name "github-actions[bot]" | ||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" |
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.
where doe this email come from?
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.
I found it in a random stackoverflow answer but here's the actual answer: https://ardislu.dev/proper-git-for-github-actions
This PR adds a new workflow that runs when a PR is opened or reopened. The workflow bumps
version
andappVersion
fields in the helm chart by a patch level e.g.2.0.0
becomes2.0.1
. It then commits the change, pushes it to the PR branch, and makes a comment on the PR reminding the author to pull the change down.Fixes #533
Supersedes #537