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 }}"