Remove debug line & actually use stripped token
This commit is contained in:
+1
-3
@@ -24,8 +24,6 @@ runs:
|
||||
# Strip any whitespace/newlines
|
||||
DEPLOY_TOKEN="${DEPLOY_TOKEN//[$'\t\r\n ']}"
|
||||
|
||||
echo "Token length: ${#DEPLOY_TOKEN}"
|
||||
|
||||
# Strip trailing slashes
|
||||
BASE_URL="${BASE_URL%/}"
|
||||
|
||||
@@ -38,7 +36,7 @@ runs:
|
||||
|
||||
RESPONSE=$(curl -sS -X POST \
|
||||
"${BASE_URL}/api/v1/deploy?site=${{ inputs.SITE_ID }}" \
|
||||
-H "Authorization: Bearer ${{ inputs.DEPLOY_TOKEN }}" \
|
||||
-H "Authorization: Bearer ${DEPLOY_TOKEN}" \
|
||||
-w "\n%{http_code}")
|
||||
|
||||
HTTP_STATUS=$(echo "$RESPONSE" | tail -n1)
|
||||
|
||||
Reference in New Issue
Block a user