Skip to content

Commit 132eff7

Browse files
committed
Run stylua+doc-generation on push.
Push directly to master will not produce any changes by stylua (run locally before push).
1 parent c9e91bb commit 132eff7

File tree

2 files changed

+11
-20
lines changed

2 files changed

+11
-20
lines changed

.github/workflows/format.yaml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/doc.yaml renamed to .github/workflows/push.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
name: Doc generation
1+
name: Generate docs and format
22

3-
on: [push, pull_request_target]
3+
on: push
44

55
jobs:
66
postprocessing:
@@ -15,3 +15,12 @@ jobs:
1515
with:
1616
commit_message: "Auto generate docs"
1717
branch: ${{ github.head_ref }}
18+
- name: "Format with Stylua"
19+
uses: JohnnyMorganz/[email protected]
20+
with:
21+
token: ${{ secrets.GITHUB_TOKEN }}
22+
args: .
23+
- uses: stefanzweifel/git-auto-commit-action@v4
24+
with:
25+
commit_message: "Format with stylua"
26+
branch: ${{ github.head_ref }}

0 commit comments

Comments
 (0)