Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}