-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.github-workflow.yml
More file actions
34 lines (31 loc) · 1.11 KB
/
Copy pathexample.github-workflow.yml
File metadata and controls
34 lines (31 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Example workflow for CONSUMERS of the auto-docs loop.
#
# Copy this to `.github/workflows/auto-docs.yml` in your repo. It is intentionally
# NOT placed under loopy's own `.github/workflows/` so it never runs on this repo.
#
# The `act` (doc-writing) step is the AI boundary. loopy ships an OpenAI-compatible
# provider that defaults to OpenRouter — just set OPENROUTER_API_KEY (optionally
# LOOPY_AI_MODEL / LOOPY_AI_BASE_URL). Or wire your own DocWriter (see playbook.md).
name: auto-docs
on:
schedule:
- cron: "0 6 * * 1" # Mondays 06:00 UTC
workflow_dispatch: {} # manual run
permissions:
contents: write # create branch + commit
pull-requests: write # open the PR
jobs:
auto-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
- run: npm ci
- name: Run auto-docs loop
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
run: npx -y loopy run auto-docs