Some checks failed
ClawSweeper Dispatch / dispatch (push) Has been cancelled
CodeQL / Security High (actions) (push) Has been cancelled
CodeQL / Security High (channel-runtime-boundary) (push) Has been cancelled
CodeQL / Security High (core-auth-secrets) (push) Has been cancelled
CodeQL / Security High (mcp-process-tool-boundary) (push) Has been cancelled
CodeQL / Security High (network-ssrf-boundary) (push) Has been cancelled
CodeQL / Security High (plugin-trust-boundary) (push) Has been cancelled
CodeQL / Security High (process-exec-boundary) (push) Has been cancelled
Docs Sync Publish Repo / sync-publish-repo (push) Has been cancelled
Docs / docs (push) Has been cancelled
OpenClaw Stable Main Closeout / Resolve stable release closeout inputs (push) Has been cancelled
OpenClaw Stable Main Closeout / Verify stable main closeout (push) Has been cancelled
Workflow Sanity / no-tabs (push) Has been cancelled
Workflow Sanity / actionlint (push) Has been cancelled
Workflow Sanity / generated-doc-baselines (push) Has been cancelled
CI / runner-admission (push) Has been cancelled
CI / preflight (push) Has been cancelled
CI / security-fast (push) Has been cancelled
CI / pnpm-store-warmup (push) Has been cancelled
CI / build-artifacts (push) Has been cancelled
CI / native-i18n (push) Has been cancelled
CI / ${{ matrix.check_name }} (push) Has been cancelled
CI / ${{ matrix.checkName }} (push) Has been cancelled
CI / checks-node-compat-node22 (push) Has been cancelled
CI / check-bundled-channel-config-metadata (push) Has been cancelled
CI / check-dependencies (push) Has been cancelled
CI / check-guards (push) Has been cancelled
CI / check-lint (push) Has been cancelled
CI / check-prod-types (push) Has been cancelled
CI / check-shrinkwrap (push) Has been cancelled
CI / check-test-types (push) Has been cancelled
CI / check-additional-boundaries-a (push) Has been cancelled
CI / check-additional-boundaries-bcd (push) Has been cancelled
CI / check-additional-extension-bundled (push) Has been cancelled
CI / check-additional-extension-channels (push) Has been cancelled
CI / check-additional-extension-package-boundary (push) Has been cancelled
CI / check-additional-runtime-topology-architecture (push) Has been cancelled
CI / check-session-accessor-boundary (push) Has been cancelled
CI / check-session-transcript-reader-boundary (push) Has been cancelled
CI / check-docs (push) Has been cancelled
CI / skills-python (push) Has been cancelled
CI / macos-swift (push) Has been cancelled
CI / ios-build (push) Has been cancelled
CI / ci-timings-summary (push) Has been cancelled
Native App Locale Refresh / Refresh native fa (push) Has been cancelled
Native App Locale Refresh / Refresh native fr (push) Has been cancelled
Native App Locale Refresh / Refresh native hi (push) Has been cancelled
Native App Locale Refresh / Refresh native id (push) Has been cancelled
Native App Locale Refresh / Refresh native it (push) Has been cancelled
Native App Locale Refresh / Refresh native ja-JP (push) Has been cancelled
Control UI Locale Refresh / plan (push) Has been cancelled
Control UI Locale Refresh / Refresh ${{ matrix.locale }} (push) Has been cancelled
Control UI Locale Refresh / Commit control UI locale refresh (push) Has been cancelled
Live Media Runner Image / Build live media runner image (push) Has been cancelled
Native App Locale Refresh / Refresh native ar (push) Has been cancelled
Native App Locale Refresh / Refresh native de (push) Has been cancelled
Native App Locale Refresh / Refresh native es (push) Has been cancelled
Native App Locale Refresh / Refresh native ko (push) Has been cancelled
Native App Locale Refresh / Refresh native nl (push) Has been cancelled
Native App Locale Refresh / Refresh native pl (push) Has been cancelled
Native App Locale Refresh / Refresh native pt-BR (push) Has been cancelled
Native App Locale Refresh / Refresh native ru (push) Has been cancelled
Native App Locale Refresh / Refresh native sv (push) Has been cancelled
Native App Locale Refresh / Refresh native th (push) Has been cancelled
Native App Locale Refresh / Refresh native tr (push) Has been cancelled
Native App Locale Refresh / Refresh native uk (push) Has been cancelled
Native App Locale Refresh / Refresh native vi (push) Has been cancelled
Native App Locale Refresh / Refresh native zh-CN (push) Has been cancelled
Native App Locale Refresh / Refresh native zh-TW (push) Has been cancelled
Native App Locale Refresh / Commit native locale refresh (push) Has been cancelled
Plugin Init Scaffold Validation / Validate provider scaffold (push) Has been cancelled
Plugin NPM Release / preview_plugins_npm (push) Has been cancelled
Plugin NPM Release / Validate release publish approval (push) Has been cancelled
Plugin NPM Release / preview_plugin_pack (push) Has been cancelled
Plugin NPM Release / publish_plugins_npm (push) Has been cancelled
Sandbox Common Smoke / sandbox-common-smoke (push) Has been cancelled
Website Installer Sync / static (push) Has been cancelled
Website Installer Sync / linux-docker (push) Has been cancelled
Website Installer Sync / macos-installer (push) Has been cancelled
Website Installer Sync / windows-installer (push) Has been cancelled
Website Installer Sync / sync-website (push) Has been cancelled
Adolf is a fork/vendored clone of github.com/openclaw/openclaw (v2026.6.11), free to diverge. Tree copied sans upstream .git; upstream remote added for future syncs. Node pinned to 24 (.nvmrc); engines already require >=22.19. Preserves docs/ARCHITECTURE.md. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LeqyaxJF2nbRXJtae2kNB2
210 lines
7.2 KiB
YAML
210 lines
7.2 KiB
YAML
name: Website Installer Sync
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- scripts/install.sh
|
|
- scripts/install-cli.sh
|
|
- scripts/install.ps1
|
|
- .github/workflows/website-installer-sync.yml
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- scripts/install.sh
|
|
- scripts/install-cli.sh
|
|
- scripts/install.ps1
|
|
- .github/workflows/website-installer-sync.yml
|
|
workflow_dispatch:
|
|
inputs:
|
|
sync_website:
|
|
description: Sync openclaw.ai after verification
|
|
required: false
|
|
default: false
|
|
type: boolean
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: website-installer-sync-${{ github.event_name == 'workflow_dispatch' && github.run_id || github.ref }}
|
|
cancel-in-progress: ${{ github.event_name != 'workflow_dispatch' }}
|
|
|
|
env:
|
|
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
|
|
|
|
jobs:
|
|
static:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
|
|
- name: Install ShellCheck
|
|
run: sudo apt-get update -y && sudo apt-get install -y shellcheck
|
|
|
|
- name: Shell syntax
|
|
run: bash -n scripts/install.sh scripts/install-cli.sh
|
|
|
|
- name: ShellCheck
|
|
run: shellcheck -e SC1091 scripts/install.sh scripts/install-cli.sh
|
|
|
|
- name: Installer help and dry-runs
|
|
run: |
|
|
bash scripts/install.sh --help >/tmp/install-help.txt
|
|
bash scripts/install.sh --dry-run --no-onboard --no-prompt
|
|
bash scripts/install-cli.sh --help >/tmp/install-cli-help.txt
|
|
|
|
- name: PowerShell syntax
|
|
shell: pwsh
|
|
run: |
|
|
$errors = $null
|
|
$null = [System.Management.Automation.PSParser]::Tokenize(
|
|
(Get-Content -Raw scripts/install.ps1),
|
|
[ref]$errors
|
|
)
|
|
if ($errors -and $errors.Count -gt 0) {
|
|
$errors | Format-List | Out-String | Write-Error
|
|
exit 1
|
|
}
|
|
|
|
linux-docker:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
|
|
- name: install.sh in Docker
|
|
run: |
|
|
timeout --kill-after=30s 20m docker run --rm \
|
|
-v "$PWD/scripts/install.sh:/tmp/install.sh:ro" \
|
|
node:24-bookworm-slim \
|
|
bash -lc 'bash /tmp/install.sh --version latest && openclaw --version'
|
|
|
|
- name: install-cli.sh in Docker
|
|
run: |
|
|
timeout --kill-after=30s 20m docker run --rm \
|
|
-e OPENCLAW_NO_ONBOARD=1 \
|
|
-e OPENCLAW_NO_PROMPT=1 \
|
|
-v "$PWD/scripts/install-cli.sh:/tmp/install-cli.sh:ro" \
|
|
node:24-bookworm-slim \
|
|
bash -lc 'apt-get update -y && apt-get install -y curl && bash /tmp/install-cli.sh --prefix /tmp/openclaw --no-onboard --version latest && /tmp/openclaw/bin/openclaw --version'
|
|
|
|
macos-installer:
|
|
runs-on: macos-15
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
|
|
with:
|
|
node-version: 24
|
|
|
|
- name: install.sh dry run
|
|
run: bash scripts/install.sh --dry-run --no-onboard --no-prompt
|
|
|
|
- name: install.sh on macOS
|
|
env:
|
|
OPENCLAW_NO_ONBOARD: "1"
|
|
OPENCLAW_NO_PROMPT: "1"
|
|
run: |
|
|
bash scripts/install.sh --no-onboard --no-prompt --version latest
|
|
openclaw --version
|
|
|
|
windows-installer:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
|
|
with:
|
|
node-version: 24
|
|
|
|
- name: install.ps1 dry run
|
|
shell: pwsh
|
|
run: .\scripts\install.ps1 -DryRun -NoOnboard -InstallMethod npm
|
|
|
|
sync-website:
|
|
needs: [static, linux-docker, macos-installer, windows-installer]
|
|
if: >
|
|
(github.event_name == 'push' && github.ref == 'refs/heads/main') ||
|
|
(github.event_name == 'workflow_dispatch' && inputs.sync_website)
|
|
runs-on: ubuntu-24.04
|
|
env:
|
|
OPENCLAW_GH_TOKEN: ${{ secrets.OPENCLAW_GH_TOKEN }}
|
|
steps:
|
|
- name: Skip website sync without token
|
|
if: env.OPENCLAW_GH_TOKEN == ''
|
|
run: echo "OPENCLAW_GH_TOKEN is not configured; installer verification passed, skipping website sync."
|
|
|
|
- name: Checkout OpenClaw
|
|
if: env.OPENCLAW_GH_TOKEN != ''
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
|
|
with:
|
|
path: openclaw
|
|
|
|
- name: Checkout openclaw.ai
|
|
if: env.OPENCLAW_GH_TOKEN != ''
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
|
|
with:
|
|
repository: openclaw/openclaw.ai
|
|
token: ${{ env.OPENCLAW_GH_TOKEN }}
|
|
path: openclaw.ai
|
|
|
|
- name: Sync installer scripts
|
|
if: env.OPENCLAW_GH_TOKEN != ''
|
|
run: |
|
|
cp openclaw/scripts/install.sh openclaw.ai/public/install.sh
|
|
cp openclaw/scripts/install-cli.sh openclaw.ai/public/install-cli.sh
|
|
cp openclaw/scripts/install.ps1 openclaw.ai/public/install.ps1
|
|
rm -f openclaw.ai/public/install.cmd
|
|
chmod +x openclaw.ai/public/install.sh openclaw.ai/public/install-cli.sh
|
|
|
|
- name: Check for changes
|
|
if: env.OPENCLAW_GH_TOKEN != ''
|
|
id: changes
|
|
working-directory: openclaw.ai
|
|
run: |
|
|
if git diff --quiet -- public/install.sh public/install-cli.sh public/install.ps1 public/install.cmd; then
|
|
echo "changed=false" >> "$GITHUB_OUTPUT"
|
|
else
|
|
echo "changed=true" >> "$GITHUB_OUTPUT"
|
|
fi
|
|
|
|
- name: Setup Bun
|
|
if: steps.changes.outputs.changed == 'true'
|
|
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
|
|
with:
|
|
bun-version: latest
|
|
|
|
- name: Setup Node.js
|
|
if: steps.changes.outputs.changed == 'true'
|
|
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
|
|
with:
|
|
node-version: "24"
|
|
|
|
- name: Install ShellCheck
|
|
if: steps.changes.outputs.changed == 'true'
|
|
run: sudo apt-get update -y && sudo apt-get install -y shellcheck
|
|
|
|
- name: Verify website with synced installers
|
|
if: steps.changes.outputs.changed == 'true'
|
|
working-directory: openclaw.ai
|
|
run: |
|
|
bash -n public/install.sh public/install-cli.sh
|
|
shellcheck -e SC1091 public/install.sh public/install-cli.sh
|
|
bun install --frozen-lockfile
|
|
bun run build
|
|
|
|
- name: Commit and push website sync
|
|
if: steps.changes.outputs.changed == 'true'
|
|
working-directory: openclaw.ai
|
|
run: |
|
|
git config user.name "openclaw-installer-sync[bot]"
|
|
git config user.email "openclaw-installer-sync[bot]@users.noreply.github.com"
|
|
git add public/install.sh public/install-cli.sh public/install.ps1
|
|
if git ls-files --error-unmatch public/install.cmd >/dev/null 2>&1; then
|
|
git add -u -- public/install.cmd
|
|
fi
|
|
git commit -m "chore: sync installers from openclaw ${GITHUB_SHA::12}"
|
|
git pull --rebase origin main
|
|
git push origin HEAD:main
|