-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodel-eol.yml
More file actions
52 lines (48 loc) · 1.45 KB
/
Copy pathmodel-eol.yml
File metadata and controls
52 lines (48 loc) · 1.45 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
# model-eol - copy this file to .github/workflows/model-eol.yml in YOUR repo.
#
# Two gates:
# - every PR: fail only if THIS change adds a model that is retired or
# retiring within the threshold (existing references stay out of the way)
# - weekly: full-repository check, so legacy references surface on a schedule
# instead of in an outage
#
# Judged by a distributor's clock instead? Add `via: aws-bedrock` (or
# azure-ai-foundry) to the step's `with:` block.
name: model-eol
on:
pull_request:
schedule:
- cron: '17 6 * * 1' # weekly, Monday 06:17 UTC
jobs:
pr-gate:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0 # --changed needs history to diff against the base ref
- uses: actions/setup-node@v7
with:
node-version: 22
package-manager-cache: false
- uses: thossullivan/model-eol@v0
with:
command: check
changed: origin/${{ github.base_ref }}
days: 90
scope: direct
weekly-full-check:
if: github.event_name == 'schedule'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 22
package-manager-cache: false
- uses: thossullivan/model-eol@v0
with:
command: alert
days: 90
scope: direct
format: github