Skip to content

Merge pull request #903 from bitpredator/dev #798

Merge pull request #903 from bitpredator/dev

Merge pull request #903 from bitpredator/dev #798

# Check Lua Formatting
name: Check Lua Formatting
on:
push:
branches: [ main, dev ]
pull_request:
types: [ labeled ]
jobs:
stylua-check:
name: Stylua Check
runs-on: ubuntu-latest
permissions:
contents: write
if: ${{ github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.label.name == 'format_all') }}
steps:
- uses: actions/checkout@v4
- uses: JohnnyMorganz/stylua-action@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: v0.18.0
# CLI arguments
args: --check .