File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ name : format
2+
3+ on :
4+ push :
5+ branches : [main]
6+
7+ jobs :
8+ stylua :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v2
12+ - name : Setup and run stylua
13+ uses : JohnnyMorganz/stylua-action@1.0.0
14+ with :
15+ token : ${{ secrets.GITHUB_TOKEN }}
16+ args : --config-path=stylua.toml .
17+ - name : Commit files
18+ run : |
19+ git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
20+ git config --local user.name "github-actions[bot]"
21+ if [[ ! -z $(git status -s) ]]; then
22+ git add init.lua lua/
23+ git commit -m "Format source code"
24+ fi
25+ - name : Push formatted files
26+ uses : ad-m/github-push-action@master
27+ with :
28+ github_token : ${{ secrets.GITHUB_TOKEN }}
29+ branch : ${{ github.ref }}
You can’t perform that action at this time.
0 commit comments