Remove debug line & actually use stripped token

This commit is contained in:
2026-05-07 17:00:39 +02:00
parent 3f4f5f2ccd
commit 3c1f1638e2
+1 -3
View File
@@ -23,8 +23,6 @@ runs:
# Strip any whitespace/newlines # Strip any whitespace/newlines
DEPLOY_TOKEN="${DEPLOY_TOKEN//[$'\t\r\n ']}" DEPLOY_TOKEN="${DEPLOY_TOKEN//[$'\t\r\n ']}"
echo "Token length: ${#DEPLOY_TOKEN}"
# Strip trailing slashes # Strip trailing slashes
BASE_URL="${BASE_URL%/}" BASE_URL="${BASE_URL%/}"
@@ -38,7 +36,7 @@ runs:
RESPONSE=$(curl -sS -X POST \ RESPONSE=$(curl -sS -X POST \
"${BASE_URL}/api/v1/deploy?site=${{ inputs.SITE_ID }}" \ "${BASE_URL}/api/v1/deploy?site=${{ inputs.SITE_ID }}" \
-H "Authorization: Bearer ${{ inputs.DEPLOY_TOKEN }}" \ -H "Authorization: Bearer ${DEPLOY_TOKEN}" \
-w "\n%{http_code}") -w "\n%{http_code}")
HTTP_STATUS=$(echo "$RESPONSE" | tail -n1) HTTP_STATUS=$(echo "$RESPONSE" | tail -n1)