We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be0fd4f commit 78ece0bCopy full SHA for 78ece0b
.github/workflows/stylua.yml
@@ -1,6 +1,12 @@
1
name: Formatting
2
3
-on: [push, pull_request_target]
+on:
4
+ push:
5
+ branches: [ "main" ]
6
+ paths-ignore:
7
+ - ".github/**"
8
+ - "**.md"
9
+ - "**.norg"
10
11
jobs:
12
format-with-stylua:
@@ -29,3 +35,14 @@ jobs:
29
35
30
36
- name: Run formatting
31
37
run: stylua -v --verify .
38
+
39
+ - uses: stefanzweifel/git-auto-commit-action@v4
40
+ with:
41
+ commit_message: "chore: autoformat with stylua"
42
+ branch: ${{ github.ref }}
43
44
+ - name: Push changes
45
+ uses: ad-m/github-push-action@master
46
47
+ github_token: ${{ secrets.GITHUB_TOKEN }}
48
0 commit comments