ci: fix stylua URL to use correct asset name
This commit is contained in:
parent
f5b484bb59
commit
cb27b8ec21
1 changed files with 1 additions and 1 deletions
2
.github/workflows/stylua.yaml
vendored
2
.github/workflows/stylua.yaml
vendored
|
|
@ -14,7 +14,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- run: |
|
- run: |
|
||||||
if ! command -v stylua &> /dev/null; then
|
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
|
unzip /tmp/stylua.zip -d /tmp
|
||||||
sudo mv /tmp/stylua /usr/local/bin/
|
sudo mv /tmp/stylua /usr/local/bin/
|
||||||
rm /tmp/stylua.zip
|
rm /tmp/stylua.zip
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue