From cb45870f72ce1f22166430cd6ded8f81d0e30111 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Tue, 29 Jul 2025 14:28:33 -0300 Subject: [PATCH] ci: add job to auto update models --- .github/workflows/update.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/update.yml diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml new file mode 100644 index 0000000000000000000000000000000000000000..9cf0d7c6c2fb88660b60989940c5e50136255c8c --- /dev/null +++ b/.github/workflows/update.yml @@ -0,0 +1,28 @@ +name: Update Providerskj + +on: + push: + branches: [main] + paths: + - "internal/config/**" + +jobs: + update-schema: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} + - uses: actions/setup-go@v5 + with: + go-version-file: go.mod + - run: go run . ./cmd/openrouter/main.go + - 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