2024-04-25 13:11:01 +00:00
|
|
|
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'
|
2024-07-18 09:28:44 +00:00
|
|
|
- name: Dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install protobuf-compiler
|
2024-04-25 13:11:01 +00:00
|
|
|
- run: |
|
|
|
|
go install github.com/swaggo/swag/cmd/swag@latest
|
2024-07-18 09:28:44 +00:00
|
|
|
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@1958fcbe2ca8bd93af633f11e97d44e567e945af
|
|
|
|
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.34.2
|
2024-04-25 13:11:01 +00:00
|
|
|
- name: Bump swagger 🔧
|
|
|
|
run: |
|
2024-07-18 09:28:44 +00:00
|
|
|
make protogen-go swagger
|
2024-04-25 13:11:01 +00:00
|
|
|
- name: Create Pull Request
|
2024-09-10 01:52:16 +00:00
|
|
|
uses: peter-evans/create-pull-request@v7
|
2024-04-25 13:11:01 +00:00
|
|
|
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
|
|
|
|
|