Skip to content

Commit c22bc62

Browse files
committed
ci(update-colors): install stylua before using it
Problem: the workflow is failing because `run: make fmt` invokes stylua, and stylua is not available within ci by default. Solution: use the action `JohnnyMorganz/stylua-action@v3` to install and invoke stylua instead of just doing `run: make fmt`.
1 parent 037f265 commit c22bc62

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/update-color-primitives.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ jobs:
4848
EOF
4949
done
5050
51-
- run: make fmt
51+
- uses: JohnnyMorganz/stylua-action@v3
52+
with:
53+
token: ${{ secrets.GITHUB_TOKEN }}
54+
version: latest
55+
args: -f stylua.toml --verify -- '${{ _DEST_DIR }}'
5256

5357
- uses: peter-evans/create-pull-request@v5
5458
with:

0 commit comments

Comments
 (0)