From ffc18dfe4bc3fa765b7a00559e319f4760608b21 Mon Sep 17 00:00:00 2001 From: Ben Kalsky Date: Mon, 1 Jun 2026 23:57:44 +0300 Subject: [PATCH] fix(ci): clawhub skill publish has no --dry-run flag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The publish run failed with `error: unknown option '--dry-run'` — the `clawhub skill publish` command exposes no such flag. Emulate the dry-run preview instead: print the exact command (auth + version are already validated in earlier steps) and exit without uploading. Real publishes run `clawhub skill publish --version ` unchanged. Co-Authored-By: Claude Opus 4.8 --- .github/workflows/publish-clawhub.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-clawhub.yml b/.github/workflows/publish-clawhub.yml index 2bb9fa5..5f5bf7f 100644 --- a/.github/workflows/publish-clawhub.yml +++ b/.github/workflows/publish-clawhub.yml @@ -73,9 +73,12 @@ jobs: env: DRY_RUN: ${{ github.event_name == 'workflow_dispatch' && inputs.dry_run || 'false' }} run: | - ARGS=("$SKILL_DIR" --version "${{ steps.ver.outputs.version }}") + # `clawhub skill publish` has no --dry-run flag, so we emulate a preview + # by printing the exact command (auth + version already validated above) + # and exiting without uploading. if [ "$DRY_RUN" = "true" ]; then - echo "Dry run — no upload." - ARGS+=(--dry-run) + echo "Dry run — would publish:" + echo " clawhub skill publish $SKILL_DIR --version ${{ steps.ver.outputs.version }}" + exit 0 fi - clawhub skill publish "${ARGS[@]}" + clawhub skill publish "$SKILL_DIR" --version "${{ steps.ver.outputs.version }}"