Update push.yml

This commit is contained in:
源文雨 2021-08-07 11:04:28 +08:00 committed by GitHub
parent 220483c914
commit a745f424ad

View File

@ -2,30 +2,19 @@ name: PushLint
on: [push] on: [push]
jobs: jobs:
golangci: golangci:
name: lint name: lint_golangci-lint
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2.3.4
- name: golangci-lint - name: golangci-lint
uses: golangci/golangci-lint-action@v2 uses: golangci/golangci-lint-action@v2.5.2
with: with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: latest version: latest
- name: Commit back
# Optional: working directory, useful for monorepos continue-on-error: true
# working-directory: somedir run: |
git config --local user.name 'github-actions[bot]'
# Optional: golangci-lint command line arguments. git config --local user.email '41898282+github-actions[bot]@users.noreply.github.com'
# args: --issues-exit-code=0 git add --all
git commit -m "🎨 改进代码样式"
# Optional: show only new issues if it's a pull request. The default value is `false`. git push
# only-new-issues: true
# Optional: if set to true then the action will use pre-installed Go.
# skip-go-installation: true
# Optional: if set to true then the action don't cache or restore ~/go/pkg.
# skip-pkg-cache: true
# Optional: if set to true then the action don't cache or restore ~/.cache/go-build.
# skip-build-cache: true