Skip to content

Commit

Permalink
Add back auto version bump workflow (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
bruce-y authored Dec 4, 2024
1 parent 6940a38 commit f6c06be
Showing 1 changed file with 40 additions and 0 deletions.
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

0 comments on commit f6c06be

Please sign in to comment.