name: lint on: workflow_dispatch: pull_request: branches: - "**" push: branches: - "**" jobs: stylua: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: JohnnyMorganz/stylua-action@1.0.0 with: token: ${{ secrets.GH_TOKEN }} # CLI arguments args: --check --config-path stylua.toml --glob 'lua/**/*.lua' -- lua # Specify `version` to pin a specific version, otherwise action will always use latest version/automatically update