mirror of
https://github.com/openclaw/clawhub.git
synced 2026-08-14 08:52:21 +00:00
* docs: split clawhub docs source * docs: make clawhub docs product-facing * docs: refine public clawhub docs routes
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
name: OpenClaw Docs Sync Dispatch
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- docs/**
|
|
- .github/workflows/openclaw-docs-sync-dispatch.yml
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
dispatch-openclaw-docs-sync:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Dispatch OpenClaw docs sync
|
|
env:
|
|
OPENCLAW_DOCS_SYNC_TOKEN: ${{ secrets.OPENCLAW_DOCS_SYNC_TOKEN }}
|
|
run: |
|
|
set -euo pipefail
|
|
|
|
if [ -z "${OPENCLAW_DOCS_SYNC_TOKEN:-}" ]; then
|
|
echo "::error::OPENCLAW_DOCS_SYNC_TOKEN is required to dispatch openclaw/openclaw docs sync."
|
|
exit 1
|
|
fi
|
|
|
|
curl --fail-with-body --silent --show-error \
|
|
--request POST \
|
|
--header "Authorization: Bearer ${OPENCLAW_DOCS_SYNC_TOKEN}" \
|
|
--header "Accept: application/vnd.github+json" \
|
|
--header "X-GitHub-Api-Version: 2022-11-28" \
|
|
https://api.github.com/repos/openclaw/openclaw/actions/workflows/docs-sync-publish.yml/dispatches \
|
|
--data '{"ref":"main"}'
|