Skip to content

Commit

Permalink
fix(#207): Empty out the pull_request_url for real (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
tinogo authored Nov 16, 2023
1 parent c858c54 commit 195e70c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

# Default values for action outputs
echo "pull_request_url=''" >> $GITHUB_OUTPUT
echo "pull_request_url=" >> $GITHUB_OUTPUT

if [ "$INPUT_DEBUG_MODE" = true ] || [ -n "$RUNNER_DEBUG" ]; then
echo '---------------------------'
Expand Down Expand Up @@ -92,7 +92,7 @@ create_pull_request() {
auth_status=$(curl -sL --write-out '%{http_code}' --output /dev/null -H "${AUTH_HEADER}" -H "${HEADER}" "${PULLS_URL}")
if [[ $auth_status -eq 403 || "$auth_status" -eq 401 ]] ; then
echo "FAILED TO AUTHENTICATE USING 'GITHUB_TOKEN' CHECK TOKEN IS VALID"
echo "pull_request_url=''" >> $GITHUB_OUTPUT
echo "pull_request_url=" >> $GITHUB_OUTPUT
exit 1
fi

Expand Down

0 comments on commit 195e70c

Please sign in to comment.