Skip to content

fix: keep onboarding legible in dock #299

fix: keep onboarding legible in dock

fix: keep onboarding legible in dock #299

Workflow file for this run

name: Sync ragweld.com Demo
on:
push:
branches: [main]
paths:
- 'web/**'
- 'data/glossary.json'
- 'data/models.json'
- 'server/models/tribrid_config_model.py'
- 'scripts/generate_types.py'
- '.github/workflows/sync-ragweld.yml'
schedule:
- cron: '17 6 * * *'
workflow_dispatch:
jobs:
sync-demo:
runs-on: ubuntu-latest
steps:
- name: Require sync token
env:
RAGWELD_DEPLOY_TOKEN: ${{ secrets.RAGWELD_DEPLOY_TOKEN }}
run: |
if [ -z "${RAGWELD_DEPLOY_TOKEN}" ]; then
echo "ERROR: RAGWELD_DEPLOY_TOKEN is required."
echo "Create a classic or fine-grained PAT with write access to DMontgomery40/ragweld.com."
echo "Then set it in this repo as Actions secret: RAGWELD_DEPLOY_TOKEN."
exit 1
fi
- name: Checkout ragweld
uses: actions/checkout@v4
with:
path: ragweld
- name: Checkout ragweld.com
uses: actions/checkout@v4
with:
repository: DMontgomery40/ragweld.com
token: ${{ secrets.RAGWELD_DEPLOY_TOKEN }}
path: ragweld.com
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Sync demo + parity check
run: |
node ragweld.com/scripts/sync-demo.cjs \
--source ragweld/web \
--source-sha "${GITHUB_SHA}" \
--source-repo "DMontgomery40/ragweld"
- name: Repair unexpected drift (non-allowlisted only)
run: |
node ragweld.com/scripts/check-demo-parity.cjs --source ragweld/web --fix
node ragweld.com/scripts/check-demo-parity.cjs --source ragweld/web
- name: Remove OS junk files
run: |
find ragweld.com -name '.DS_Store' -delete
- name: Open or update sync PR
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.RAGWELD_DEPLOY_TOKEN }}
path: ragweld.com
commit-message: "chore: sync demo from ragweld/web (${{ github.sha }})"
branch: codex/sync-demo-${{ github.sha }}
base: main
title: "chore: sync demo from ragweld/web (${{ github.sha }})"
body: |
Automated sync from `DMontgomery40/ragweld` to `DMontgomery40/ragweld.com`.
Source commit: `${{ github.sha }}`
Trigger: `${{ github.event_name }}`
This PR was generated by `.github/workflows/sync-ragweld.yml`.
add-paths: |
vendor/demo/**
public/glossary.json
labels: |
automation
sync