ci(github workflows): use go mod to set go version instead of hardcoding

将两个GitHub Actions工作流中的Go版本配置从硬编码的1.24改为通过go.mod文件读取,避免版本不一致问题

Signed-off-by: acooler15 <acooler15@foxmail.com>
This commit is contained in:
acooler15
2026-05-24 11:40:14 +08:00
parent c7734b7fcd
commit d1c9d0a66f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version: '1.24'
go-version-file: 'go.mod'
cache: true
- name: Generate Swagger Docs