Skip to content

Commit

Permalink
swagger updated
Browse files Browse the repository at this point in the history
  • Loading branch information
fanhousanbu committed Mar 5, 2024
1 parent 45087d9 commit 6af2dc5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/scripts/auto-swagger.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

{
go install github.com/swaggo/swag/cmd/swag@latest
swag init -g ./cmd/server/main.go
git config user.name devops
git config suer.email [email protected]
git add .
git commit -m "swagger updated"
git push
} || {
set -e
}

0 comments on commit 6af2dc5

Please sign in to comment.