Skip to content
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

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open

Conversation

magikid
Copy link
Collaborator

@magikid magikid commented Jun 28, 2024

This PR adds a new workflow that runs when a PR is opened or reopened. The workflow bumps version and appVersion fields in the helm chart by a patch level e.g. 2.0.0 becomes 2.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

magikid and others added 16 commits June 26, 2024 12:07
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.
@magikid magikid requested review from zmattingly and mathew-fleisch and removed request for zmattingly June 28, 2024 18:37
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"
Copy link
Collaborator

@mathew-fleisch mathew-fleisch Jun 28, 2024

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?

Copy link
Collaborator Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create automation to automatically bump semver
2 participants