mirror of
https://github.com/charmbracelet/crush.git
synced 2025-08-02 05:20:46 +03:00
27 lines
733 B
YAML
27 lines
733 B
YAML
name: Update Schema
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- "internal/config/**"
|
|
|
|
jobs:
|
|
update-schema:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: go.mod
|
|
- run: go run . schema > .github/crush-schema.json
|
|
- uses: stefanzweifel/git-auto-commit-action@778341af668090896ca464160c2def5d1d1a3eb0 # v5
|
|
with:
|
|
commit_message: "chore: auto-update generated files"
|
|
branch: main
|
|
commit_user_name: actions-user
|
|
commit_user_email: actions@github.com
|
|
commit_author: actions-user <actions@github.com>
|