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

Add back auto version bump workflow #296

Merged
merged 1 commit into from
Dec 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/bump-version.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Bump Versions in Chart.yaml
on:
release:
types:
- published

jobs:
bump-version:
name: Bump app version
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: main
token: ${{ secrets.GH_PACKAGES_READ_TOKEN }}

- name: Bump app version
run: |
pip install pybump==1.12.6
pybump bump --file helm/agent/Chart.yaml --level minor
pybump set --file helm/agent/Chart.yaml --app-version --set-version ${{github.event.release.tag_name}}

- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GH_PACKAGES_READ_TOKEN }}
commit-message: "[CI] Bump Chart and App Version"
committer: Superblocks Admin <[email protected]>
author: Superblocks Admin <[email protected]>
signoff: false
branch: bump-app-version-${{github.event.release.tag_name}}
delete-branch: true
title: '[CI] Bump OPA version in chart to ${{github.event.release.tag_name}}'
body: |
Autogenerated PR to bump the App Version in the chart to ${{github.event.release.tag_name}}.
team-reviewers: |
engineering
draft: false
Loading