Skip to content
Merged
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
50 changes: 5 additions & 45 deletions .github/workflows/bump-openclaw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,59 +83,19 @@ 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 }}
NEW_VERSION: ${{ steps.latest.outputs.version }}
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": "<https://github.com/openclaw/openclaw/releases/tag/v${{ env.NEW_VERSION }}|View release notes>"
}
}
]
}