Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🌱 Run dependabot action outside of GOPATH again #6820

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,8 @@ jobs:
with:
go-version: '1.18'
id: go
# Note: We have to run everything in the GOPATH as `make generate-go-openapi`
# currently does not work outside of the GOPATH, see:
# https://github.com/kubernetes-sigs/cluster-api/issues/6526
- name: Check out code into the Go module directory
uses: actions/checkout@v3
with:
path: './src/sigs.k8s.io/cluster-api'
- name: Set env
run: echo "GOPATH=${GITHUB_WORKSPACE}" >> $GITHUB_ENV
- uses: actions/cache@v3.0.4
name: Restore go cache
with:
Expand All @@ -39,15 +32,12 @@ jobs:
${{ runner.os }}-go-
- name: Update all modules
run: make generate-modules
working-directory: './src/sigs.k8s.io/cluster-api'
- name: Update generated code
run: make generate
working-directory: './src/sigs.k8s.io/cluster-api'
- uses: EndBug/add-and-commit@v9
name: Commit changes
with:
author_name: dependabot[bot]
author_email: 49699333+dependabot[bot]@users.noreply.github.com
default_author: github_actor
message: 'Update generated code'
cwd: './src/sigs.k8s.io/cluster-api'