-
Notifications
You must be signed in to change notification settings - Fork 7
65 lines (53 loc) · 1.83 KB
/
Copy pathmonitor-model-sources.yml
File metadata and controls
65 lines (53 loc) · 1.83 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
55
56
57
58
59
60
61
62
63
64
65
name: Monitor Model Pricing and Lifecycle Sources
on:
schedule:
- cron: '0 4 * * 1'
workflow_dispatch:
concurrency:
group: monitor-model-sources
cancel-in-progress: false
permissions:
contents: write
pull-requests: write
jobs:
monitor-model-sources:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Setup Node.js
uses: actions/setup-node@v7
with:
node-version: '22'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Check monitored official sources
run: npm run fetch:model-sources
- name: Validate monitoring metadata
run: |
npm run test:validate
npm run format:check
npm run biome:check
git diff --check
- name: Check for changes
id: git-check
run: |
git diff --exit-code manifests/models || echo "changes=true" >> "$GITHUB_OUTPUT"
- name: Create review pull request
if: steps.git-check.outputs.changes == 'true'
uses: peter-evans/create-pull-request@v8
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'chore(data): flag changed model sources'
title: 'chore(data): review changed model sources'
body: |
## Review required
One or more monitored official pricing or lifecycle pages changed.
This automation updates only normalized source-content digests and observation dates.
It deliberately does **not** change token prices, model availability, lifecycle status,
or any other model fact. Review the cited official pages before changing those fields.
branch: auto-review-model-sources
delete-branch: true
labels: |
automated