ci: new stylua action that only runs on push
parent
d843c86cd0
commit
6c3a123dcd
|
|
@ -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`.
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
Loading…
Reference in New Issue