From b634fa47f4fd9b37d38fef9dd59674303fe6aebd Mon Sep 17 00:00:00 2001 From: Skydust Date: Sat, 21 Dec 2024 16:55:10 +0100 Subject: [PATCH] Updated with the new tools --- action.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/action.yml b/action.yml index 58734b1..6833fd0 100644 --- a/action.yml +++ b/action.yml @@ -22,10 +22,9 @@ runs: - name: Docker login shell: sh run: | - source /load-tools.sh export PREFIXLESS_REGISTRY=$(echo -n "${{ inputs.registry }}" | sed 's/^https\?:\/\///') - write "$(bold_blue)Checking credentials validity for ${PREFIXLESS_REGISTRY}..." + log_info "$(bold_blue)Checking credentials validity for ${PREFIXLESS_REGISTRY}..." export BASE64_AUTH=$(echo -n "${{ inputs.user }}:${{ inputs.pass }}" | base64 -w 0) response=$(curl -s -w "\n%{http_code}" \ @@ -37,13 +36,13 @@ runs: response_body=$(echo "$response" | head -n -1) if [ "$http_code" -eq 200 ]; then - write "$(bold_green)Authentication successful" + log_info "$(bold_green)Authentication successful" else - write "$(bold_red)Authentication failed with HTTP code: $http_code" - write "$(red)Response body:" - write "$(red)$response_body" + log_info "$(bold_red)Authentication failed with HTTP code: $http_code" + log_info "$(red)Response body:" + log_info "$(red)$response_body" if [ "$http_code" -eq 401 ]; then - write "$(yellow)The identifiers are probably wrong" + log_info "$(yellow)The identifiers are probably wrong" fi exit 1 fi