mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-29 06:54:59 +00:00
ci: add swagger pipeline
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
parent
758b0c9042
commit
60690c9fc4
1 changed files with 31 additions and 0 deletions
31
.github/workflows/update_swagger.yaml
vendored
Normal file
31
.github/workflows/update_swagger.yaml
vendored
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
name: Update swagger
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: 0 20 * * *
|
||||||
|
workflow_dispatch:
|
||||||
|
jobs:
|
||||||
|
swagger:
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version: 'stable'
|
||||||
|
- run: |
|
||||||
|
go install github.com/swaggo/swag/cmd/swag@latest
|
||||||
|
- name: Bump swagger 🔧
|
||||||
|
run: |
|
||||||
|
make swagger
|
||||||
|
- name: Create Pull Request
|
||||||
|
uses: peter-evans/create-pull-request@v6
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.UPDATE_BOT_TOKEN }}
|
||||||
|
push-to-fork: ci-forks/LocalAI
|
||||||
|
commit-message: 'feat(swagger): update swagger'
|
||||||
|
title: 'feat(swagger): update swagger'
|
||||||
|
branch: "update/swagger"
|
||||||
|
body: Update swagger
|
||||||
|
signoff: true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue