Browse Source

actions: cats publishing runs stylua on definition files;

bjorn 5 months ago
parent
commit
1ff5336ec0
1 changed files with 9 additions and 0 deletions
  1. 9 0
      .github/workflows/generate.yml

+ 9 - 0
.github/workflows/generate.yml

@@ -6,6 +6,8 @@ on:
       - dev
     paths:
       - 'api/lovr/**.lua'
+      - 'api/generators/*.lua'
+      - 'api/main.lua'
 
 permissions:
   contents: write
@@ -33,6 +35,13 @@ jobs:
       - name: Generate
         run: ./lovr-x86_64.AppImage docs/api
 
+      - name: Format
+        run: |
+          curl -s https://github.com/JohnnyMorganz/StyLua/releases/download/v2.0.1/stylua-linux-x86_64.zip > stylua.zip
+          unzip stylua.zip
+          chmod +x stylua
+          ./stylua library
+
       - name: Checkout cats branch
         uses: actions/checkout@v4
         with: