diff --git a/.github/workflows/go-get.yml b/.github/workflows/go-get.yml index 0ad2f0a56d2..359b471d0e4 100644 --- a/.github/workflows/go-get.yml +++ b/.github/workflows/go-get.yml @@ -30,9 +30,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repository code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Run go get to get Go module run: make go-get + - name: Run go generate + run: | + go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.12.0 + go generate ./... - name: Check for repository changes run: | if git diff --name-only --exit-code; then @@ -69,7 +73,7 @@ jobs: - name: Create Pull Request if: ${{ env.changes_exist == 'true' }} id: cpr - uses: actions/github-script@v5.0.0 + uses: actions/github-script@v7 env: SOURCE_BRANCH: ${{ steps.branch.outputs.branch }} with: diff --git a/scripts/go-get b/scripts/go-get index d2bd94f92dc..98f39146ae1 100755 --- a/scripts/go-get +++ b/scripts/go-get @@ -18,4 +18,3 @@ done go get -d "${MODULE}@${VERSION}" go mod tidy go mod verify -go generate ./...