diff --git a/.github/scripts/auto-swagger.sh b/.github/scripts/auto-swagger.sh new file mode 100644 index 00000000..3a36349a --- /dev/null +++ b/.github/scripts/auto-swagger.sh @@ -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 devops@aastar.xyz +git add . +git commit -m "swagger updated" +git push +} || { +set -e +}