From 195e70c077744813cd72a7c439c7acac98131239 Mon Sep 17 00:00:00 2001 From: Tino Goratsch Date: Thu, 16 Nov 2023 13:04:54 +0100 Subject: [PATCH] fix(#207): Empty out the pull_request_url for real (#208) --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 6d182b0..52773c0 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,7 +1,7 @@ #!/bin/sh # Default values for action outputs -echo "pull_request_url=''" >> $GITHUB_OUTPUT +echo "pull_request_url=" >> $GITHUB_OUTPUT if [ "$INPUT_DEBUG_MODE" = true ] || [ -n "$RUNNER_DEBUG" ]; then echo '---------------------------' @@ -92,7 +92,7 @@ create_pull_request() { auth_status=$(curl -sL --write-out '%{http_code}' --output /dev/null -H "${AUTH_HEADER}" -H "${HEADER}" "${PULLS_URL}") if [[ $auth_status -eq 403 || "$auth_status" -eq 401 ]] ; then echo "FAILED TO AUTHENTICATE USING 'GITHUB_TOKEN' CHECK TOKEN IS VALID" - echo "pull_request_url=''" >> $GITHUB_OUTPUT + echo "pull_request_url=" >> $GITHUB_OUTPUT exit 1 fi