-
Notifications
You must be signed in to change notification settings - Fork 679
Expand file tree
/
Copy pathdaily-triage.yml
More file actions
54 lines (46 loc) · 1.68 KB
/
Copy pathdaily-triage.yml
File metadata and controls
54 lines (46 loc) · 1.68 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Daily Triage — GitHub Actions (tool-agnostic trigger)
# Invokes your agent harness with a triage prompt. Adapt the "Run agent" step
# to your setup (Codex CLI, custom script, repository_dispatch to external runner).
name: Daily Triage Loop
on:
schedule:
- cron: '0 8 * * 1-5' # 08:00 UTC Mon–Fri
workflow_dispatch:
permissions:
contents: read
issues: read
pull-requests: read
checks: read
jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Gather CI context
id: ci
run: |
echo "Recent workflow runs available via gh api"
gh run list --limit 10 --json conclusion,name,headBranch,createdAt 2>/dev/null || true
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Ensure STATE.md exists
run: |
if [ ! -f STATE.md ]; then
cp starters/minimal-loop/STATE.md.example STATE.md 2>/dev/null || \
echo "# Loop State\n\nLast run: never\n\n## High Priority\n\n## Watch List\n" > STATE.md
fi
# Replace this step with your agent invocation:
# - Codex CLI in headless mode
# - repository_dispatch to a machine running Grok/Claude
# - Custom triage script that updates STATE.md
- name: Run triage agent
run: |
echo "::notice::Wire this step to your agent harness."
echo "Prompt: Run loop-triage skill. Update STATE.md. Report only unless L2 enabled."
echo "See examples/github-actions/README.md"
- name: Upload state artifact
uses: actions/upload-artifact@v4
with:
name: loop-state
path: STATE.md
if-no-files-found: ignore