-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 912 Bytes
/
auto-format.yml
File metadata and controls
38 lines (32 loc) · 912 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Auto Format
on:
push:
pull_request:
paths-ignore:
- CHANGELOG.md
jobs:
format:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
ref: ${{ github.head_ref || github.ref }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: 'stable'
- name: Run make fmt
run: make fmt
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v7
with:
commit_message: 'chore: apply code formatting changes'
commit_user_name: 'github-actions[bot]'
commit_user_email: 'github-actions[bot]@users.noreply.github.com'
commit_options: '--no-verify --no-gpg-sign'
skip_dirty_check: false