Skip to content

Commit a20193b

Browse files
authored
Merge pull request kubernetes-sigs#6820 from sbueringer/pr-dependabot-outside-of-gopath
🌱 Run dependabot action outside of GOPATH again
2 parents 7c5b9ef + 4744148 commit a20193b

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

.github/workflows/dependabot.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,8 @@ jobs:
2222
with:
2323
go-version: '1.18'
2424
id: go
25-
# Note: We have to run everything in the GOPATH as `make generate-go-openapi`
26-
# currently does not work outside of the GOPATH, see:
27-
# https://github.com/kubernetes-sigs/cluster-api/issues/6526
2825
- name: Check out code into the Go module directory
2926
uses: actions/checkout@v3
30-
with:
31-
path: './src/sigs.k8s.io/cluster-api'
32-
- name: Set env
33-
run: echo "GOPATH=${GITHUB_WORKSPACE}" >> $GITHUB_ENV
3427
- uses: actions/[email protected]
3528
name: Restore go cache
3629
with:
@@ -42,15 +35,12 @@ jobs:
4235
${{ runner.os }}-go-
4336
- name: Update all modules
4437
run: make generate-modules
45-
working-directory: './src/sigs.k8s.io/cluster-api'
4638
- name: Update generated code
4739
run: make generate
48-
working-directory: './src/sigs.k8s.io/cluster-api'
4940
- uses: EndBug/add-and-commit@v9
5041
name: Commit changes
5142
with:
5243
author_name: dependabot[bot]
5344
author_email: 49699333+dependabot[bot]@users.noreply.github.com
5445
default_author: github_actor
5546
message: 'Update generated code'
56-
cwd: './src/sigs.k8s.io/cluster-api'

0 commit comments

Comments
 (0)