{"id":13608362,"url":"https://github.com/JohnnyMorganz/stylua-action","last_synced_at":"2025-04-12T17:31:19.209Z","repository":{"id":40318866,"uuid":"366488751","full_name":"JohnnyMorganz/stylua-action","owner":"JohnnyMorganz","description":"GitHub action for StyLua","archived":false,"fork":false,"pushed_at":"2025-04-01T12:19:00.000Z","size":374,"stargazers_count":59,"open_issues_count":3,"forks_count":8,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-01T13:25:59.763Z","etag":null,"topics":["formatter","github-action","lua","printer","stylua"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JohnnyMorganz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2021-05-11T19:14:03.000Z","updated_at":"2025-04-01T12:15:06.000Z","dependencies_parsed_at":"2024-02-10T11:25:09.662Z","dependency_job_id":"e1b01912-0b88-4ef0-b209-c2ac199a649f","html_url":"https://github.com/JohnnyMorganz/stylua-action","commit_stats":{"total_commits":43,"total_committers":2,"mean_commits":21.5,"dds":"0.046511627906976716","last_synced_commit":"f964d754f9671b271f4c043bcbe9cf058be51ea2"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":"actions/typescript-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnnyMorganz%2Fstylua-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnnyMorganz%2Fstylua-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnnyMorganz%2Fstylua-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnnyMorganz%2Fstylua-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JohnnyMorganz","download_url":"https://codeload.github.com/JohnnyMorganz/stylua-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248605048,"owners_count":21132099,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["formatter","github-action","lua","printer","stylua"],"created_at":"2024-08-01T19:01:26.680Z","updated_at":"2025-04-12T17:31:19.202Z","avatar_url":"https://github.com/JohnnyMorganz.png","language":"TypeScript","readme":"# StyLua GitHub Action \u003ca href=\"https://github.com/JohnnyMorganz/stylua-action/actions\"\u003e\u003cimg alt=\"stylua-action status\" src=\"https://github.com/JohnnyMorganz/stylua-action/workflows/build-test/badge.svg\"\u003e\u003c/a\u003e\n\nGitHub Action to run [StyLua](https://github.com/JohnnyMorganz/StyLua), a Lua code formatter.\n\nInstalls the StyLua binary (from GitHub releases), and caches it. Any StyLua command can then be run.\n\n\u003e **NOTE:** We recommend using a toolchain manager such as [aftman](https://github.com/LPGhatguy/aftman) to manage StyLua, as it allows you to define the version used throughout your project - both on the command line, and in GitHub actions.\n\n## Usage\n\n```yaml\n- uses: actions/checkout@v4\n- uses: JohnnyMorganz/stylua-action@v4\n  with:\n    token: ${{ secrets.GITHUB_TOKEN }}\n    version: latest # NOTE: we recommend pinning to a specific version in case of formatting changes\n    # CLI arguments\n    args: --check .\n```\n\nIf you would just like to install `stylua`, but not run it (e.g., since it is used as part of a wider CI script), then\nyou can set `args: false`:\n\n```yaml\n- uses: actions/checkout@v4\n- uses: JohnnyMorganz/stylua-action@v4\n  with:\n    token: ${{ secrets.GITHUB_TOKEN }}\n    version: latest # NOTE: we recommend pinning to a specific version in case of formatting changes\n    # This disables running `stylua`\n    args: false\n  # Run stylua independently\n- run: |\n    stylua --version\n```\n\n### Parameters\n\n#### `token` (Required)\n\nGitHub token. Required since the binary is downloaded from GitHub releases (to speed download)\n\n#### `args` (Required)\n\nThe arguments to pass to the StyLua binary. If you don't want to run the binary, set `args: false`.\n\n#### `version` (Required)\n\nThe version of StyLua to use. Follows semver syntax.\nAlternatively, supply `latest` to use the latest available release.\n\n**NOTE: using `latest` may cause the action to fail if StyLua updates and the formatting changes!**\n\nBased off https://github.com/Roblox/setup-foreman, licensed under [MIT](https://github.com/Roblox/setup-foreman/blob/master/LICENSE.txt)\n","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJohnnyMorganz%2Fstylua-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJohnnyMorganz%2Fstylua-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJohnnyMorganz%2Fstylua-action/lists"}