Skip to content

Commit

Permalink
(CI)(organization-packages) colorize jq
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsBurgh committed Sep 19, 2023
1 parent 104a123 commit ff84bb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/organization-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit ff84bb9

Please sign in to comment.