Skip to content

v9.10

v9.10 #122

Workflow file for this run

name: stylua
on: push
jobs:
stylua:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: JohnnyMorganz/stylua-action@v2
with:
version: latest
token: ${{ secrets.GITHUB_TOKEN }}
args: --config-path=stylua.toml ./
- name: Commit files
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
if ! [[ -z $(git status -s) ]]; then
git add *
git commit -m "Format lua"
fi
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}