From 3f4f5f2ccd0d21b8aa0f4e4fb5c157b264fe0e41 Mon Sep 17 00:00:00 2001 From: KartoffelChipss <4+kartoffelchipss@noreply.git.fish> Date: Thu, 7 May 2026 16:57:00 +0200 Subject: [PATCH] Add token whitespace trimming and debug line --- action.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/action.yml b/action.yml index f1396ca..f3d9dd4 100644 --- a/action.yml +++ b/action.yml @@ -19,6 +19,12 @@ runs: shell: bash run: | BASE_URL="${{ inputs.BASE_URL }}" + DEPLOY_TOKEN="${{ inputs.DEPLOY_TOKEN }}" + + # Strip any whitespace/newlines + DEPLOY_TOKEN="${DEPLOY_TOKEN//[$'\t\r\n ']}" + + echo "Token length: ${#DEPLOY_TOKEN}" # Strip trailing slashes BASE_URL="${BASE_URL%/}" @@ -27,6 +33,8 @@ runs: if [[ "$BASE_URL" != http://* && "$BASE_URL" != https://* ]]; then BASE_URL="https://${BASE_URL}" fi + + echo "Using url ${BASE_URL}/api/v1/deploy?site=${{ inputs.SITE_ID }}" RESPONSE=$(curl -sS -X POST \ "${BASE_URL}/api/v1/deploy?site=${{ inputs.SITE_ID }}" \