Skip to content

Fix finding the start and end of the current query. (#239) #104

Fix finding the start and end of the current query. (#239)

Fix finding the start and end of the current query. (#239) #104

Workflow file for this run

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