Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4814beee5b | |||
| 3c1f1638e2 | |||
| 3f4f5f2ccd |
+5
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user