fix: hosts response #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Update docs" | |
on: | |
push: | |
tags-ignore: | |
- '*' | |
branches-ignore: | |
- main | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.21 | |
- name: Update Swagger | |
run: | | |
go install github.com/swaggo/swag/cmd/swag@latest | |
swag init -g ./cmd/serve.go -o cmd/docs | |
- name: Update API.md | |
uses: addnab/docker-run-action@v3 | |
with: | |
image: quay.io/goswagger/swagger:latest | |
options: -v ${{ github.workspace }}:/api | |
run: | | |
cd /api | |
swagger generate markdown -f cmd/docs/swagger.json --output api.md | |
- name: Add & Commit | |
uses: EndBug/[email protected] | |
with: | |
add: '["cmd/docs", "api.md"]' | |
author_name: "DO! DevOps bot" | |
author_email: "[email protected]" | |
message: "docs: Automatic docs update" | |
push: true |