ci: fix ClawSweeper dispatcher payload · openclaw/openclaw@0fc1cde
steipete
·
2026-04-28
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -29,7 +29,11 @@ jobs:
|
29 | 29 | ITEM_NUMBER: ${{ github.event.issue.number || github.event.pull_request.number }} |
30 | 30 | ITEM_KIND: ${{ github.event_name == 'pull_request_target' && 'pull_request' || 'issue' }} |
31 | 31 | run: | |
| 32 | + payload="$(jq -nc \ |
| 33 | + --arg target_repo "$TARGET_REPO" \ |
| 34 | + --argjson item_number "$ITEM_NUMBER" \ |
| 35 | + --arg item_kind "$ITEM_KIND" \ |
| 36 | + '{event_type:"clawsweeper_item",client_payload:{target_repo:$target_repo,item_number:$item_number,item_kind:$item_kind}}')" |
32 | 37 | gh api repos/openclaw/clawsweeper/dispatches \ |
33 | 38 | --method POST \ |
34 | | - --field event_type=clawsweeper_item \ |
35 | | - --raw-field client_payload="{\"target_repo\":\"$TARGET_REPO\",\"item_number\":$ITEM_NUMBER,\"item_kind\":\"$ITEM_KIND\"}" |
| 39 | + --input - <<< "$payload" |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。