ci: fix stylua URL to use correct asset name
Some checks failed
Luacheck / luacheck (push) Successful in 10s
StyLua / stylua (push) Failing after 2s

This commit is contained in:
Jeremie Fraeys 2026-02-08 15:20:33 -05:00
parent f5b484bb59
commit cb27b8ec21
No known key found for this signature in database

View file

@ -14,7 +14,7 @@ jobs:
steps:
- run: |
if ! command -v stylua &> /dev/null; then
curl -sL "https://api.github.com/repos/JohnnyMorganz/StyLua/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/' | xargs -I {} curl -sL -o /tmp/stylua.zip "https://github.com/JohnnyMorganz/StyLua/releases/download/{}/stylua-linux.zip"
curl -sL -o /tmp/stylua.zip "https://github.com/JohnnyMorganz/StyLua/releases/download/v2.3.1/stylua-linux-x86_64.zip"
unzip /tmp/stylua.zip -d /tmp
sudo mv /tmp/stylua /usr/local/bin/
rm /tmp/stylua.zip