From e78a1306089b3aca32e54d7bde24781e9b1abe9d Mon Sep 17 00:00:00 2001 From: St0rmz1 Date: Fri, 5 Jun 2026 14:42:50 -0700 Subject: [PATCH] feat(kiloclaw): move openclaw bump Slack notify to PR-time agent post --- .github/workflows/bump-openclaw.yml | 50 +++-------------------------- 1 file changed, 5 insertions(+), 45 deletions(-) diff --git a/.github/workflows/bump-openclaw.yml b/.github/workflows/bump-openclaw.yml index ba388459b2..65f719c8f9 100644 --- a/.github/workflows/bump-openclaw.yml +++ b/.github/workflows/bump-openclaw.yml @@ -83,7 +83,6 @@ jobs: - name: Notify webhook of new release if: steps.age.outputs.recent == 'true' - continue-on-error: true env: WEBHOOK_SECRET: ${{ secrets.KILOCLAW_GITHUB_WEBHOOK_TRIGGER_TOKEN }} WEBHOOK_URL: ${{ secrets.OPENCLAW_BUMP_WEBHOOK_URL }} @@ -91,51 +90,12 @@ jobs: CURRENT_VERSION: ${{ steps.current.outputs.version }} run: | echo "New openclaw version available: $NEW_VERSION (current: $CURRENT_VERSION)" + # The webhook spawns the Kilo cloud agent, which edits the Dockerfile, + # opens the bump PR, and posts the Slack notification itself (with the PR + # link + a scored upgrade assessment). This step no longer notifies Slack; + # it fails loudly so a broken trigger isn't silently swallowed. curl -sf -o /dev/null -X POST \ -H "Content-Type: application/json" \ -H "x-webhook-secret: $WEBHOOK_SECRET" \ - -d "{\"new_openclaw_version\": \"$NEW_VERSION\"}" \ + -d "{\"new_openclaw_version\": \"$NEW_VERSION\", \"current_openclaw_version\": \"$CURRENT_VERSION\"}" \ "$WEBHOOK_URL" - - - name: Notify Slack - if: steps.age.outputs.recent == 'true' - continue-on-error: true - uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a # v2.1.1 - env: - CURRENT_VERSION: ${{ steps.current.outputs.version }} - NEW_VERSION: ${{ steps.latest.outputs.version }} - with: - webhook: ${{ secrets.DEPLOY_NOTIFY_SLACK_WEBHOOK_URL }} - webhook-type: incoming-webhook - payload: | - { - "blocks": [ - { - "type": "header", - "text": { - "type": "plain_text", - "text": "New OpenClaw Release Available" - } - }, - { - "type": "section", - "fields": [ - { - "type": "mrkdwn", - "text": "*Current Version:*\n${{ env.CURRENT_VERSION }}" - }, - { - "type": "mrkdwn", - "text": "*New Version:*\n${{ env.NEW_VERSION }}" - } - ] - }, - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "" - } - } - ] - }