Various updates #510
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: stylua | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- '*' | |
permissions: | |
contents: write | |
jobs: | |
stylua: | |
name: stylua | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: JohnnyMorganz/stylua-action@v4 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
version: latest # NOTE: we recommend pinning to a specific version in case of formatting changes | |
# CLI arguments | |
args: lua plugin scripts | |
- name: Commit and push formatted files | |
uses: ./.github/actions/commit-and-push | |
with: | |
commit-message: 'Format Lua files with stylua' | |
files: '.' | |
github_token: ${{ secrets.GITHUB_TOKEN }} |