-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add back auto version bump workflow (#296)
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |