59 lines
1.3 KiB
YAML
59 lines
1.3 KiB
YAML
name: dashboard
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
repository_dispatch:
|
|
types: [clawsweeper_dashboard_refresh]
|
|
schedule:
|
|
- cron: "*/15 * * * *"
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
concurrency:
|
|
group: clawsweeper-dashboard
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
render:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
path: dashboard
|
|
fetch-depth: 0
|
|
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
repository: openclaw/clawsweeper
|
|
path: clawsweeper
|
|
filter: blob:none
|
|
fetch-depth: 1
|
|
|
|
- uses: actions/setup-node@v5
|
|
with:
|
|
node-version: 24
|
|
|
|
- name: Enable pnpm
|
|
run: corepack enable
|
|
|
|
- name: Render dashboard
|
|
working-directory: dashboard
|
|
run: |
|
|
pnpm install --frozen-lockfile
|
|
pnpm run check
|
|
pnpm run render -- --source ../clawsweeper
|
|
|
|
- name: Commit dashboard
|
|
working-directory: dashboard
|
|
run: |
|
|
if [ -z "$(git status --porcelain -- README.md)" ]; then
|
|
echo "Dashboard unchanged."
|
|
exit 0
|
|
fi
|
|
git config user.name "github-actions[bot]"
|
|
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
git add README.md
|
|
git commit -m "chore: update dashboard"
|
|
git push
|