Skip to content

Commit 8af87be

Browse files
Update push_to_netlify.sh
1 parent 903c054 commit 8af87be

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/push_to_netlify.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,15 @@ function do_preview() {
4646
git branch -m "$PR_NUMBER"
4747

4848
echo -e "${YELLOW}==== PUSHING TO GITHUB ====${NC}"
49-
git push origin -f "$PR_BRANCH" --quiet
49+
git push origin -f "$PR_NUMBER" --quiet
5050

5151
echo -e "${GREEN}DONE!${NC}"
52-
5352
}
5453

5554
# check if PR_NUMBER variable is set else run git clone
5655
if [ -z "$PR_NUMBER" ]; then
5756
echo -e "${YELLOW}==== PR_NUMBER is not set, exiting... ====${NC}"
58-
exit 1
57+
circleci-agent step halt
5958
else
6059
echo -e "${YELLOW}==== PR_NUMBER is set, running for preview ====${NC}"
6160
do_preview

0 commit comments

Comments
 (0)