Remove debug line & actually use stripped token
This commit is contained in:
+1
-3
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user