Skip to content

ci: upload

ci: upload #1

Workflow file for this run

name: lint
on: [ push, pull_request ]
env:
GO_VERSION: 1.24.3
jobs:
golangci-lint:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@main
- name: Check out code
uses: actions/checkout@main
- name: Get dependencies
run: go mod tidy
- name: golangci-lint
uses: golangci/golangci-lint-action@main
with:
version: latest
args: --timeout=10m
- name: Commit lint changes
if: ${{ !github.head_ref }}
continue-on-error: true
run: |
git config --local user.name 'github-actions[bot]'
git config --local user.email '41898282+github-actions[bot]@users.noreply.github.com'
git add --all
git commit -m "chore: lint style"
- name: Create commit lint change pr
if: ${{ !github.head_ref }}
continue-on-error: true
uses: peter-evans/create-pull-request@main