-
Notifications
You must be signed in to change notification settings - Fork 693
55 lines (44 loc) · 1.3 KB
/
generate-docs.yml
File metadata and controls
55 lines (44 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Update Docs
on:
schedule:
- cron: "0 0 * * 1"
workflow_dispatch:
jobs:
update-docs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: Install Protoc
run: |
sudo apt-get update -y
sudo apt-get install -y protobuf-compiler
- name: Install Protoc-gen-swagger
run: |
go install github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger@latest
- name: Install Statik
run: |
sudo apt-get update -y
sudo apt-get install -y golang-statik
- name: Install Buf
run: |
curl -sSL https://github.com/bufbuild/buf/releases/download/v1.0.0-rc5/buf-Linux-x86_64 -o buf
chmod +x buf
sudo mv buf /usr/local/bin
- name: Download dependencies
run: go mod download
- name: Run make docs
run: |
make docs
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update docs
title: "Update docs"
body: "Update docs"
branch: "docs-update-branch"