GitHub Action that syncs repository docs into an Actx0 workspace knowledge base. Unchanged files are skipped by checksum; changed files replace the previous document with the same filename and labels.
- uses: Actx0/doc-sync@v1.0.0
with:
workspace_id: ${{ secrets.ACTX0_WORKSPACE_ID }}
access_key: ${{ secrets.ACTX0_ACCESS_KEY }}
tags: |
tag: docs
repo: ${{ github.repository }}
team: platform
paths: |
docs/
docs/*.md
docs/file1.md
docs/file2.txt
repo_dir: ${{ github.workspace }}workspace_id(required) — Actx0 workspace IDaccess_key(required) — Actx0 access keytags— knowledge labels, onekey: valueper linepaths(required) — files, directories, or globs to sync, one per line. Directories include markdown and text filesrepo_dir— repository root used to resolve paths. Defaults togithub.workspacebase_url— Actx0 API base URL. Defaults tohttps://app.actx0.comdry_run— compare checksums without uploading or deleting
Outputs: uploaded, replaced, skipped, failed.
go build -o doc-sync ./cmd
./doc-sync \
--workspace-id "$ACTX0_WORKSPACE_ID" \
--access-key "$ACTX0_ACCESS_KEY" \
--tags $'tag: docs\nteam: platform\nrepo: actx0/app' \
--repo-dir . \
--path docs/ \
--path 'docs/*.md' \
--path docs/file1.md \
--path docs/file2.txtRelease binaries are published by GoReleaser when a v* tag is pushed.
go test ./...
go build -o doc-sync ./cmd
goreleaser check