From 115e31945db2fa03dca3d2b4d7ddab8dd0eb01ca Mon Sep 17 00:00:00 2001 From: Lahfir Date: Sat, 20 Jun 2026 13:04:46 -0700 Subject: [PATCH] ci: fix clawhub skill publish command --- .github/workflows/release.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 99bbca9..ccd8259 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -431,8 +431,18 @@ jobs: - name: Publish all skills to ClawHub run: | - clawhub sync \ - --root skills/ \ - --all \ - --bump patch \ - --changelog "Release ${{ needs.release-please.outputs.tag_name }}" + set -euo pipefail + SOURCE_COMMIT="$(git rev-parse HEAD)" + for skill_dir in skills/*; do + [ -d "$skill_dir" ] || continue + [ -f "$skill_dir/SKILL.md" ] || continue + slug="$(basename "$skill_dir")" + clawhub publish "$skill_dir" \ + --slug "$slug" \ + --changelog "Release ${{ needs.release-please.outputs.tag_name }}" \ + --tags latest \ + --source-repo "${GITHUB_REPOSITORY}" \ + --source-commit "$SOURCE_COMMIT" \ + --source-ref "${{ needs.release-please.outputs.tag_name }}" \ + --source-path "$skill_dir" + done