fix the action error with no go.sum file
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
This commit is contained in:
parent
c7c8f49396
commit
ddccefe388
|
@ -34,20 +34,13 @@ jobs:
|
||||||
codegen:
|
codegen:
|
||||||
name: codegen
|
name: codegen
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
env:
|
|
||||||
GOPATH: ${{ github.workspace }}
|
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
working-directory: ${{ env.GOPATH }}/src/github.com/karmada-io/karmada
|
|
||||||
steps:
|
steps:
|
||||||
- name: checkout code
|
- name: checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
|
||||||
path: ${{ env.GOPATH }}/src/github.com/karmada-io/karmada
|
|
||||||
- name: install Go
|
- name: install Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version-file: ${{ env.GOPATH }}/src/github.com/karmada-io/karmada/go.mod
|
go-version-file: go.mod
|
||||||
- name: Install Protoc
|
- name: Install Protoc
|
||||||
uses: arduino/setup-protoc@v3
|
uses: arduino/setup-protoc@v3
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in New Issue