From 7ec5cce9e4fa93e0453ad103c637c7277d912d5a Mon Sep 17 00:00:00 2001 From: Ben Kalsky Date: Sat, 4 Jul 2026 00:43:12 +0300 Subject: [PATCH] ci: use the real clawhub --dry-run flag for publish previews The CLI does support --dry-run (validates without uploading); the workflow no longer emulates a preview by echoing. Co-Authored-By: Claude Opus 4.8 --- .github/workflows/publish-clawhub.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-clawhub.yml b/.github/workflows/publish-clawhub.yml index af46b11..b4b080f 100644 --- a/.github/workflows/publish-clawhub.yml +++ b/.github/workflows/publish-clawhub.yml @@ -73,12 +73,9 @@ jobs: env: DRY_RUN: ${{ github.event_name == 'workflow_dispatch' && inputs.dry_run || 'false' }} run: | - # `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 — would publish:" - echo " clawhub skill publish $SKILL_DIR --slug wordpress-api-pro --name 'WordPress API Pro' --version ${{ steps.ver.outputs.version }}" + echo "Dry run — validating the publish without uploading:" + clawhub skill publish "$SKILL_DIR" --slug wordpress-api-pro --name "WordPress API Pro" --version "${{ steps.ver.outputs.version }}" --dry-run exit 0 fi clawhub skill publish "$SKILL_DIR" --slug wordpress-api-pro --name "WordPress API Pro" --version "${{ steps.ver.outputs.version }}"