From c7af9c765cb12898aca168c600a78cf98f21ea49 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Tue, 28 Apr 2026 09:02:24 +0100 Subject: [PATCH] ci: tolerate missing clawsweeper dispatch access --- .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 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