Skip to content

Generate models.json #84

Generate models.json

Generate models.json #84

Workflow file for this run

name: Generate models.json
on:
workflow_dispatch:
repository_dispatch:
types: [generate]
schedule:
- cron: "0 4 * * *"
permissions:
contents: write
jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- run: bun run generate
- name: Commit and push if changed
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add models.json
git diff --cached --quiet || git commit -m "update models.json" && git push