Skip to content

Commit

Permalink
Update StyLuaGitHubAction.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpredator committed Jun 10, 2024
1 parent 30e43f7 commit e3e640d
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/StyLuaGitHubAction.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ on:
pull_request:
types: [ labeled ]

- uses: actions/checkout@v3
- uses: JohnnyMorganz/stylua-action@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest # NOTE: we recommend pinning to a specific version in case of formatting changes
# CLI arguments
args: --check .
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@v3
- uses: JohnnyMorganz/stylua-action@v3

0 comments on commit e3e640d

Please sign in to comment.