From 3ee61c35aac325f76e325d1f19f983fc0a8eaabc Mon Sep 17 00:00:00 2001 From: madomado Date: Mon, 10 Apr 2023 06:22:36 +0800 Subject: [PATCH] feat(ci): add debug to mg.sh (#367) Signed-off-by: madomado --- .github/workflows/mg.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/mg.sh b/.github/workflows/mg.sh index cb0afcabd4..88f4af9292 100755 --- a/.github/workflows/mg.sh +++ b/.github/workflows/mg.sh @@ -1,3 +1,5 @@ +set -x + if $1; then dirs=$2 dirs=${dirs/\/pkg/} @@ -11,6 +13,5 @@ for f in anda-build/rpm/rpms/*; do r=$(lesspipe.sh $f | grep -E "Release\s*: " | sed "s@Release\s*: @@") d=${p/\%v/$v} d=${d/\%r/$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 & + 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 done -wait