Skip to content

Commit 1ff5336

Browse files
committed
actions: cats publishing runs stylua on definition files;
1 parent 688ea75 commit 1ff5336

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/generate.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
- dev
77
paths:
88
- 'api/lovr/**.lua'
9+
- 'api/generators/*.lua'
10+
- 'api/main.lua'
911

1012
permissions:
1113
contents: write
@@ -33,6 +35,13 @@ jobs:
3335
- name: Generate
3436
run: ./lovr-x86_64.AppImage docs/api
3537

38+
- name: Format
39+
run: |
40+
curl -s https://github.com/JohnnyMorganz/StyLua/releases/download/v2.0.1/stylua-linux-x86_64.zip > stylua.zip
41+
unzip stylua.zip
42+
chmod +x stylua
43+
./stylua library
44+
3645
- name: Checkout cats branch
3746
uses: actions/checkout@v4
3847
with:

0 commit comments

Comments
 (0)