From 1fc41770e81e927a03b1b524530cacb71102063b Mon Sep 17 00:00:00 2001 From: Bruce Yu Date: Wed, 4 Dec 2024 12:19:47 -0500 Subject: [PATCH] Add back auto version bump workflow --- .github/workflows/bump-version.yaml | 40 +++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/bump-version.yaml diff --git a/.github/workflows/bump-version.yaml b/.github/workflows/bump-version.yaml new file mode 100644 index 0000000..fc9c21a --- /dev/null +++ b/.github/workflows/bump-version.yaml @@ -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 + 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 + author: Superblocks Admin + 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