Skip to content

Commit

Permalink
ci: fix running trunk in generate action
Browse files Browse the repository at this point in the history
  • Loading branch information
rriski committed Jan 18, 2024
1 parent e0c9eac commit 545d7e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,15 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: install goimports
run: |
go install golang.org/x/tools/cmd/goimports@latest
- run: curl https://get.trunk.io -fsSL | bash
- name: generate files
run: make generate
- uses: trunk-io/trunk-action@v1 # Lint generated files
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore(userconfigs): generate files"
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ boilerplate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto,
$(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..."

.PHONY: generate
generate: userconfigs boilerplate imports manifests docs charts fmt
generate: userconfigs boilerplate imports manifests docs charts

.PHONY: fmt
fmt:
Expand Down

0 comments on commit 545d7e9

Please sign in to comment.