-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 970 Bytes
/
refresh.yml
File metadata and controls
36 lines (30 loc) · 970 Bytes
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
name: Refresh MCP Intent Analysis
on:
schedule:
# Daily at 9:07am UTC (off-minute to avoid contention)
- cron: '7 9 * * *'
workflow_dispatch: # Allow manual trigger from GitHub UI
permissions:
contents: write
pages: write
id-token: write
jobs:
refresh:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Fetch intents and regenerate site
env:
DD_API_KEY: ${{ secrets.DD_API_KEY }}
DD_APP_KEY: ${{ secrets.DD_APP_KEY }}
run: python refresh.py --days 21
- name: Commit updated index.html
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add index.html
git diff --cached --quiet || git commit -m "Auto-refresh intent data $(date -u +%Y-%m-%d)"
git push