-
Notifications
You must be signed in to change notification settings - Fork 7
46 lines (39 loc) · 1.36 KB
/
models.yml
File metadata and controls
46 lines (39 loc) · 1.36 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
name: models
on:
schedule:
- cron: "0 0 * * *"
jobs:
update:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Update models metadata
run: uv run scripts/models.py
- name: Compare models metadata
id: compare
run: |
git diff --exit-code langgraphics/metadata/models.json || echo "::set-output name=differs::true"
- name: Create Pull Request
id: create-pr
if: steps.compare.outputs.differs == 'true'
uses: peter-evans/create-pull-request@v5
with:
base: main
token: ${{ secrets.GH_TOKEN }}
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
branch: update-models-metadata
branch-suffix: short-commit-hash
title: Update the models metadata
commit-message: Update the models metadata
body: This PR updates the models metadata to keep the repository up-to-date with the upstream model costs.