Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/loop-ready.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: loop-ready

# The README's terminal demo is rendered from a REAL audit run, never hand-edited.
# This workflow is the live half of that promise: every push re-runs the audit
# (the badge in the README goes red if any kit fails) and re-renders
# assets/terminal-loop-ready.svg from the actual results, committing it only
# when the score actually changed.

on:
push:
branches: [main]
pull_request:

permissions:
contents: write

jobs:
audit-and-render:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20

- name: Run the Loop Ready audit
run: npm run audit:loops

- name: Re-render the README terminal demo from the audit output
# Runs even when the audit fails, so the image shows the red run too.
if: always()
run: npm run render:terminal

- name: Commit the refreshed image (main only, when it changed)
if: always() && github.event_name == 'push' && github.ref == 'refs/heads/main'
run: |
if git diff --quiet assets/terminal-loop-ready.svg; then
echo "Terminal demo unchanged — nothing to commit."
exit 0
fi
git config user.name "loop-ready-bot"
git config user.email "actions@github.com"
git add assets/terminal-loop-ready.svg
git commit -m "chore(readme): re-render terminal demo from live audit"
git push
313 changes: 242 additions & 71 deletions README.md

Large diffs are not rendered by default.

141 changes: 141 additions & 0 deletions assets/hero-banner.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading