3 Commits

+5 -1
View File
@@ -19,6 +19,10 @@ 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 ']}"
# Strip trailing slashes
BASE_URL="${BASE_URL%/}"
@@ -30,7 +34,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)