Skip to content

docs: add alternatives and acknowledgements (#35) #95

docs: add alternatives and acknowledgements (#35)

docs: add alternatives and acknowledgements (#35) #95

Workflow file for this run

name: stylua
on:
push:
branches:
- 'main'
pull_request:
branches:
- 'main'
workflow_dispatch:
jobs:
style:
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: checkstylua
uses: JohnnyMorganz/stylua-action@v3
continue-on-error: true
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
args: --check .
- name: formatstylua
if: ${{ steps.checkstylua.outcome != 'success' }}
uses: JohnnyMorganz/stylua-action@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
args: .
- uses: stefanzweifel/git-auto-commit-action@v4
if: ${{ steps.checkstylua.outcome != 'success' }}
with:
branch: ${{ github.head_ref }}
commit_message: "chore(stylua): format lua files"
commit_user_name: "github-actions[bot]"
commit_user_email: "github-actions[bot]@users.noreply.github.com"
commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"