forked from rancher/rancher
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update GitHub Actions workflow to add 'go generate' step, and use lat…
…est checkout and script versions
- Loading branch information
1 parent
2172146
commit 9d0bac1
Showing
2 changed files
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,4 +18,3 @@ done | |
go get -d "${MODULE}@${VERSION}" | ||
go mod tidy | ||
go mod verify | ||
go generate ./... |