forked from mirror/jwt
Chore: Added Github Action to auto format code on push to main
Signed-off-by: jay-dee7 <jasdeepsingh.uppal@gmail.com>
This commit is contained in:
parent
0972257eba
commit
d272f4dadc
|
@ -0,0 +1,21 @@
|
||||||
|
name: gofumpt
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
prettier:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
ref: ${{ github.head_ref }}
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Auto Format code
|
||||||
|
uses: iamnotaturtle/auto-gofmt@v2.0.0
|
||||||
|
with:
|
||||||
|
only_changed: true
|
Loading…
Reference in New Issue