From ff84bb94eed274f79a83c38320048859faede23f Mon Sep 17 00:00:00 2001 From: Matthijs van der Burgh Date: Tue, 19 Sep 2023 15:09:31 +0200 Subject: [PATCH] (CI)(organization-packages) colorize jq --- ci/organization-packages.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/organization-packages.sh b/ci/organization-packages.sh index 1d1fe52f2..8caaf29ff 100644 --- a/ci/organization-packages.sh +++ b/ci/organization-packages.sh @@ -31,7 +31,7 @@ echo -e "\e[35m\e[1mTOKEN length = ${#TOKEN}\e[0m" echo "::group::curl -L -H \"Accept: application/vnd.github+json\" -H \"Authorization: Bearer \${TOKEN}\" -H \"X-GitHub-Api-Version: 2022-11-28\" \"https://api.github.com/orgs/${ORGANIZATION}/packages?package_type=${PACKAGE_TYPE}&per_page=100&page=1\"" echo -e "\e[1mcurl -L -H \"Accept: application/vnd.github+json\" -H \"Authorization: Bearer \${TOKEN}\" -H \"X-GitHub-Api-Version: 2022-11-28\" \"https://api.github.com/orgs/${ORGANIZATION}/packages?package_type=${PACKAGE_TYPE}&per_page=100&page=1\"" output=$(curl -L -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${TOKEN}" -H "X-GitHub-Api-Version: 2022-11-28" "https://api.github.com/orgs/${ORGANIZATION}/packages?package_type=${PACKAGE_TYPE}&per_page=100&page=1") -echo -e "${output}" | jq +echo -e "${output}" | jq -C echo "::endgroup::" echo -e "\e[1mjq -r '.[].name'\e[0m"