mirror of https://github.com/Xhofe/alist
ci: auto gofmt for pull request [skip ci]
parent
49bde82426
commit
8b353da0d2
|
@ -0,0 +1,19 @@
|
|||
name: Golang Formatter
|
||||
on: [pull_request]
|
||||
jobs:
|
||||
prettier:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
# Make sure the actual branch is checked out when running on pull requests
|
||||
ref: ${{ github.head_ref }}
|
||||
# This is important to fetch the changes to the previous commit
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Format code
|
||||
uses: iamnotaturtle/auto-gofmt@v2.1.0
|
||||
with:
|
||||
commit_message: "style: format code with gofmt"
|
||||
only_changed: True
|
|
@ -29,3 +29,5 @@ output/
|
|||
/daemon/
|
||||
/public/dist/*
|
||||
/!public/dist/README.md
|
||||
|
||||
.VSCodeCounter
|
Loading…
Reference in New Issue