From cd163d97e5bdb950cc2409bb9a5d0beefcdc15b5 Mon Sep 17 00:00:00 2001 From: windowsboy111 Date: Sun, 16 Apr 2023 22:40:59 +0800 Subject: [PATCH] fix(ci): mg --- .github/workflows/mg.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/mg.sh b/.github/workflows/mg.sh index 985f6959dc..6badda0db6 100755 --- a/.github/workflows/mg.sh +++ b/.github/workflows/mg.sh @@ -4,7 +4,7 @@ dirs=$2 dirs=${dirs/\/pkg/} export p="{\"id\":\"$5\",\"ver\":\"%v\",\"rel\":\"%r\",\"arch\":\"$4\",\"dirs\":\"$dirs\",\"succ\":$1}" -if [[ $succ == false ]]; then +if [[ $1 == false ]]; then d=${p/\%v/?} d=${d/\%r/?} curl -H "Authorization: Bearer $6" https://madoguchi.fyralabs.com/ci/terra$3/builds/$n -X PUT -H "Content-Type: application/json" -d $d --fail-with-body