-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 1.06 KB
/
Copy pathweekly-summary.yml
File metadata and controls
41 lines (34 loc) · 1.06 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
name: Weekly Summary
on:
schedule:
- cron: '0 5 * * 6' # Every Saturday 5am UTC (Friday ~10pm MST)
workflow_dispatch: {} # Manual trigger
permissions:
contents: write
jobs:
generate-summary:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: pip install anthropic requests
- name: Generate weekly summary
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
GH_PAT: ${{ secrets.GH_PAT }}
TRIGGER: ${{ github.event_name }}
run: python scripts/weekly-summary.py
- name: Commit summary
run: |
git config user.name "geleus-bot"
git config user.email "bot@geleus.com"
git add data/weekly-summaries.json data/notes.md
if git diff --cached --quiet; then
echo "No changes to commit"
else
git commit -m "[bot] weekly summary $(date +%Y-%m-%d)"
git push
fi