This repository was archived by the owner on Jul 14, 2026. It is now read-only.
Repository navigation
updated helm release 26.2.8 #3
This file contains hidden or 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
| name: Helm Release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - 'R[0-9]*' | |
| paths: | |
| - 'charts/simplyblock-operator/Chart.yaml' | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| release_branch: ${{ steps.release_meta.outputs.branch }} | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| - name: Set up Helm | |
| uses: azure/setup-helm@v4 | |
| with: | |
| version: latest | |
| - name: Extract version and package chart | |
| run: | | |
| VERSION="$(grep '^version:' charts/simplyblock-operator/Chart.yaml | awk '{print $2}' | tr -d '"')" | |
| echo "VERSION=$VERSION" >> $GITHUB_ENV | |
| mkdir -p "charts/$VERSION" | |
| helm package charts/simplyblock-operator --destination "charts/$VERSION/" | |
| - name: Prepare release metadata | |
| id: release_meta | |
| run: | | |
| echo "branch=release-${{ env.VERSION }}" >> "$GITHUB_OUTPUT" | |
| - name: Commit and create PR | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| BRANCH="${{ steps.release_meta.outputs.branch }}" | |
| git fetch origin main | |
| git checkout -b "$BRANCH" origin/main | |
| helm repo index charts/ --url https://simplyblock.github.io/helm-charts/charts | |
| git add charts/index.yaml "charts/${{ env.VERSION }}/" | |
| git commit -m "helm release for simplyblock-operator ${{ env.VERSION }}" || echo "No changes to commit" | |
| git push origin "$BRANCH" | |
| gh pr create \ | |
| --title "Helm release: ${{ env.VERSION }}" \ | |
| --body "Automated Helm release for simplyblock-operator ${{ env.VERSION }}" \ | |
| --head "$BRANCH" \ | |
| --base main | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |