Skip to content

Commit

Permalink
fix: pull_request_url output overriden if downloading sources and tra…
Browse files Browse the repository at this point in the history
…nslations (#206)

Co-authored-by: Christoffer Jahren <[email protected]>
  • Loading branch information
j4hr3n and Christoffer Jahren authored Nov 14, 2023
1 parent eeea5ee commit c858c54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/sh

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

if [ "$INPUT_DEBUG_MODE" = true ] || [ -n "$RUNNER_DEBUG" ]; then
echo '---------------------------'
printenv
Expand Down Expand Up @@ -112,7 +115,6 @@ create_pull_request() {
# check if pull request exist
if echo "$PULL_REQUESTS" | grep -xq "$BRANCH"; then
echo "PULL REQUEST ALREADY EXIST"
echo "pull_request_url=''" >> $GITHUB_OUTPUT
else
echo "CREATE PULL REQUEST"

Expand All @@ -135,8 +137,6 @@ create_pull_request() {

if [ -n "$PULL_REQUESTS_URL" ]; then
echo "pull_request_url=$PULL_REQUESTS_URL" >> $GITHUB_OUTPUT
else
echo "pull_request_url=''" >> $GITHUB_OUTPUT
fi

if [ "$PULL_REQUESTS_URL" = null ]; then
Expand Down

0 comments on commit c858c54

Please sign in to comment.