diff --git a/.github/workflows/clawsweeper-dispatch.yml b/.github/workflows/clawsweeper-dispatch.yml index 4bf2ae1e949..d156432df61 100644 --- a/.github/workflows/clawsweeper-dispatch.yml +++ b/.github/workflows/clawsweeper-dispatch.yml @@ -41,6 +41,10 @@ jobs: --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 \ + if gh api repos/openclaw/clawsweeper/dispatches \ --method POST \ - --input - <<< "$payload" + --input - <<< "$payload"; then + echo "Dispatched ClawSweeper review." + else + echo "::warning::Skipping ClawSweeper dispatch because the configured credential could not dispatch to openclaw/clawsweeper." + fi