Skip to content

Commit

Permalink
Update GitHub Actions workflow to add 'go generate' step, and use lat…
Browse files Browse the repository at this point in the history
…est checkout and script versions
  • Loading branch information
chiukapoor committed Oct 15, 2024
1 parent 2172146 commit 9d0bac1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/go-get.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
go generate ./...
- name: Check for repository changes
run: |
if git diff --name-only --exit-code; then
Expand Down Expand Up @@ -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:
Expand Down
1 change: 0 additions & 1 deletion scripts/go-get
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ done
go get -d "${MODULE}@${VERSION}"
go mod tidy
go mod verify
go generate ./...

0 comments on commit 9d0bac1

Please sign in to comment.