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:
@@ -34,7 +34,7 @@ jobs:
|
|||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v6
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: '1.24'
|
go-version-file: 'go.mod'
|
||||||
cache: true
|
cache: true
|
||||||
|
|
||||||
- name: Generate Swagger Docs
|
- name: Generate Swagger Docs
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ jobs:
|
|||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v6
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: '1.24'
|
go-version-file: 'go.mod'
|
||||||
|
|
||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v6
|
uses: actions/setup-node@v6
|
||||||
|
|||||||
Reference in New Issue
Block a user