Skip to content

Commit 5f066f0

Browse files
committed
Don't fail if it already exists
1 parent e619383 commit 5f066f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ then
3232
echo "Pushing git commit"
3333
git push -f -u origin HEAD:$INPUT_DESTINATION_HEAD_BRANCH
3434

35-
echo "Creating a pull request"
35+
echo "Creating a pull request if it doesn't exist"
3636
gh pr create -t $INPUT_DESTINATION_HEAD_BRANCH \
3737
-b $INPUT_DESTINATION_HEAD_BRANCH \
3838
-B $INPUT_DESTINATION_BASE_BRANCH \
39-
-H $INPUT_DESTINATION_HEAD_BRANCH
39+
-H $INPUT_DESTINATION_HEAD_BRANCH || true
4040
else
4141
echo "No changes detected"
4242
fi

0 commit comments

Comments
 (0)