Skip to content

Commit 994b247

Browse files
committed
Update publish
1 parent c04019d commit 994b247

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/publish-clawhub-plugin.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,19 @@ jobs:
113113
- name: Verify ClawHub authentication
114114
run: clawhub whoami
115115

116+
- name: Inspect existing package owner
117+
run: |
118+
set +e
119+
echo "::group::Token identity (clawhub whoami)"
120+
clawhub whoami
121+
echo "::endgroup::"
122+
echo "::group::Registry metadata for clawbits-openclaw-plugin"
123+
curl -fsS "https://clawhub.ai/api/v1/packages/clawbits-openclaw-plugin" \
124+
| node -e "const d=JSON.parse(require('fs').readFileSync(0,'utf8')); console.log(JSON.stringify(d, null, 2))" \
125+
|| echo "(package not found or registry error — proceeding)"
126+
echo "::endgroup::"
127+
echo "Compare the publisher/owner fields above with the whoami output. If they differ, the token in CLAWHUB_API_TOKEN belongs to a different account than the existing package's owner."
128+
116129
- name: Publish package to ClawHub
117130
run: |
118131
clawhub package publish "${{ steps.pack.outputs.publish_path }}" \

publish.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
2020
PLUGIN_DIR="$REPO_ROOT/plugin"
2121
PUBLISH_DIR="$REPO_ROOT/publish/clawbits-openclaw-plugin"
2222
REGISTRY_API="https://clawhub.ai/api/v1"
23-
SOURCE_REPO_DEFAULT="kladkostan/freeclaws"
23+
SOURCE_REPO_DEFAULT="kladkostan/clawbits"
2424
MIN_CLAWHUB_MINOR=12
2525

2626
DRY_RUN=false

0 commit comments

Comments
 (0)