Skip to content

Commit e89e8f2

Browse files
Make action work when artifact job has spaces
1 parent 1258a97 commit e89e8f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ runs:
1717
PREVIEWER_URL: "${{ inputs.previewer-server }}/preview/${{ github.repository }}/${{ github.event.issue.number }}/"
1818
ARTIFACT_JOB: ${{ inputs.artifact-job }}
1919
run: |
20-
PREVIEWER_RESPONSE=$(curl -X POST -f --data-urlencode \"job=${ARTIFACT_JOB}\" ${PREVIEWER_URL})
20+
PREVIEWER_RESPONSE=$(curl -X POST -f "${PREVIEWER_URL}?job=${ARTIFACT_JOB// /%20}")
2121
EXIT_CODE=$?
2222
echo "previewer-response=${PREVIEWER_RESPONSE}" | tee -a "$GITHUB_OUTPUT"
2323
exit ${EXIT_CODE}

0 commit comments

Comments
 (0)