diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1e784a90..01d54a49 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -175,19 +175,19 @@ jobs: sed -i "s|repository: .*|repository: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}|" charts/agent-broker/values.yaml sed -i "s/tag: .*/tag: \"${SHORT_SHA}\"/" charts/agent-broker/values.yaml - - name: Commit and push + - name: Create release PR env: GH_TOKEN: ${{ steps.app-token.outputs.token }} run: | - git config user.name "thepagent" - git config user.email "thepagent@users.noreply.github.com" - git remote set-url origin https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }} + BRANCH="chore/release-chart-${{ steps.bump.outputs.new_version }}" + git config user.name "openclaw-helm-bot[bot]" + git config user.email "3185992+openclaw-helm-bot[bot]@users.noreply.github.com" + git checkout -b "$BRANCH" git add charts/agent-broker/Chart.yaml charts/agent-broker/values.yaml git commit -m "chore: release chart ${{ steps.bump.outputs.new_version }}" - git push + git push origin "$BRANCH" + gh pr create --title "chore: release chart ${{ steps.bump.outputs.new_version }}" \ + --body "Auto-generated chart version bump." \ + --base main --head "$BRANCH" --repo ${{ github.repository }} + gh pr merge "$BRANCH" --squash --auto --repo ${{ github.repository }} - - name: Trigger chart release - env: - GH_TOKEN: ${{ steps.app-token.outputs.token }} - run: | - gh workflow run release.yml --repo ${{ github.repository }}