Skip to content

OpenNefia/stylua-action

 
 

Repository files navigation

StyLua GitHub Action stylua-action status

GitHub Action to run StyLua, a Lua code formatter.

Installs the StyLua binary (from GitHub releases), and caches it. Any StyLua command can then be run.

Usage

- uses: actions/checkout@v2
- uses: JohnnyMorganz/[email protected]
  with:
    token: ${{ secrets.GITHUB_TOKEN }}
    # CLI arguments
    args: --check .
    # Specify `version` to pin a specific version, otherwise action will always use latest version/automatically update

Parameters

token (Required)

GitHub token. Required since the binary is downloaded from GitHub releases (to speed download)

args (Required)

The arguments to pass to the StyLua binary

version (Optional)

The version of StyLua to use. Follows semver syntax. If not specified, installs the latest release. It is recommended to pin your version so that updates to StyLua don't lead to unwanted changes in the action without explicitly updating.

Based off https://github.com/Roblox/setup-foreman, licensed under MIT

Packages

No packages published

Languages

  • TypeScript 99.7%
  • Lua 0.3%