mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 13:59:39 +08:00
23 lines
643 B
YAML
23 lines
643 B
YAML
name: PushLint
|
|
on: [push]
|
|
jobs:
|
|
golangci:
|
|
go-version: 1.17.x
|
|
name: lint_golangci-lint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: golangci-lint
|
|
uses: golangci/golangci-lint-action@v2
|
|
with:
|
|
version: latest
|
|
args: --issues-exit-code=0
|
|
- name: Commit back
|
|
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 "🎨 改进代码样式"
|
|
git push
|