Skip to content

Commit

Permalink
ci: new stylua action that only runs on push
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser committed Jun 1, 2024
1 parent 7d28769 commit fe58b5f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
- [ ] Used only camelCase variable names.
- [ ] If functionality is added or modified, also made respective changes to the
`README.md` (the `.txt` file is auto-generated and does not need to be modified).
- [ ] If a non-trivial PR, formatting via `stylua`.
20 changes: 20 additions & 0 deletions .github/workflows/stylua.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Format with Stylua

on:
push:
branches: [ main ]
paths: [ '**.lua' ]

jobs:
postprocessing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: JohnnyMorganz/stylua-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
args: --check .
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "style: format with stylua"

0 comments on commit fe58b5f

Please sign in to comment.