Skip to content

Commit

Permalink
Make action work when artifact job has spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
datapythonista committed Jan 28, 2024
1 parent 1258a97 commit e89e8f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ runs:
PREVIEWER_URL: "${{ inputs.previewer-server }}/preview/${{ github.repository }}/${{ github.event.issue.number }}/"
ARTIFACT_JOB: ${{ inputs.artifact-job }}
run: |
PREVIEWER_RESPONSE=$(curl -X POST -f --data-urlencode \"job=${ARTIFACT_JOB}\" ${PREVIEWER_URL})
PREVIEWER_RESPONSE=$(curl -X POST -f "${PREVIEWER_URL}?job=${ARTIFACT_JOB// /%20}")
EXIT_CODE=$?
echo "previewer-response=${PREVIEWER_RESPONSE}" | tee -a "$GITHUB_OUTPUT"
exit ${EXIT_CODE}
Expand Down

0 comments on commit e89e8f2

Please sign in to comment.