Skip to content

Commit 08e6d41

Browse files
committed
CI: Add StyLua for Pull Requests
1 parent e70475a commit 08e6d41

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/pull_request.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,22 @@ jobs:
77
runs-on: ubuntu-latest
88

99
steps:
10-
- uses: actions/checkout@v1
10+
- uses: actions/checkout@v3
1111
with:
1212
fetch-depth: 200
13+
ref: ${{ github.event.pull_request.head.sha }}
1314

1415
- name: Install and run Luacheck
1516
uses: nebularg/actions-luacheck@v1
1617
with:
1718
args: "--no-color -q"
1819
annotate: warning
1920

21+
- uses: JohnnyMorganz/stylua-action@1.0.0
22+
with:
23+
token: ${{ secrets.GITHUB_TOKEN }}
24+
args: --check .
25+
2026
- name: Update Build Date
2127
run: sed -i "s/@build-time@/`date +%Y%m%d%H%M%S`/" WeakAuras/Init.lua
2228

0 commit comments

Comments
 (0)