Skip to content

Spawn Drift

Spawn Drift #2

Workflow file for this run

name: Spawn Drift
# Regenerates the fresh-slate templates from the live Mind/Memory and fails
# if the published PyAutoMind-template / PyAutoMemory-template repos have
# drifted from what spawn generates (the repos_sync pattern: single source,
# generated view, drift-checked). On drift, re-run spawn --write and force-
# sync the templates (the one sanctioned force-push — they are generated
# views; see docs/pyautobrain/spawn_spec.md).
on:
schedule:
- cron: "17 6 * * 1" # weekly, Monday 06:17 UTC
workflow_dispatch:
permissions:
contents: read
jobs:
drift:
runs-on: ubuntu-latest
steps:
- name: Checkout the live repos + published templates
run: |
for r in PyAutoMind PyAutoMemory PyAutoMind-template PyAutoMemory-template; do
git clone --depth 1 "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/PyAutoLabs/$r" "$r"
done
- name: Regenerate + diff
run: |
mkdir published
mv PyAutoMind-template PyAutoMemory-template published/
python3 PyAutoMind/scripts/spawn.py --root "$PWD" --check published