Skip to content

ci: fix trunk, set fetch-depth to zero for all workflows #331

ci: fix trunk, set fetch-depth to zero for all workflows

ci: fix trunk, set fetch-depth to zero for all workflows #331

Workflow file for this run

name: generate files
on:
pull_request: {}
permissions:
contents: write
jobs:
generate:
runs-on: ubuntu-latest
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
- uses: trunk-io/trunk-action@v1
with:
check-mode: none # Only initialize trunk, `trunk fmt` will be run in the next step
- name: generate files
run: make generate
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore(userconfigs): generate files"