From 0fc1cdec456d19c9b33b30f72af31582f7ffef6c Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Tue, 28 Apr 2026 06:44:26 +0100 Subject: [PATCH] ci: fix ClawSweeper dispatcher payload --- .github/workflows/clawsweeper-dispatch.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/clawsweeper-dispatch.yml b/.github/workflows/clawsweeper-dispatch.yml index 67723cc6038..2190e6d5915 100644 --- a/.github/workflows/clawsweeper-dispatch.yml +++ b/.github/workflows/clawsweeper-dispatch.yml @@ -29,7 +29,11 @@ jobs: ITEM_NUMBER: ${{ github.event.issue.number || github.event.pull_request.number }} ITEM_KIND: ${{ github.event_name == 'pull_request_target' && 'pull_request' || 'issue' }} run: | + payload="$(jq -nc \ + --arg target_repo "$TARGET_REPO" \ + --argjson item_number "$ITEM_NUMBER" \ + --arg item_kind "$ITEM_KIND" \ + '{event_type:"clawsweeper_item",client_payload:{target_repo:$target_repo,item_number:$item_number,item_kind:$item_kind}}')" gh api repos/openclaw/clawsweeper/dispatches \ --method POST \ - --field event_type=clawsweeper_item \ - --raw-field client_payload="{\"target_repo\":\"$TARGET_REPO\",\"item_number\":$ITEM_NUMBER,\"item_kind\":\"$ITEM_KIND\"}" + --input - <<< "$payload"