We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 903c054 commit 8af87beCopy full SHA for 8af87be
scripts/push_to_netlify.sh
@@ -46,16 +46,15 @@ function do_preview() {
46
git branch -m "$PR_NUMBER"
47
48
echo -e "${YELLOW}==== PUSHING TO GITHUB ====${NC}"
49
- git push origin -f "$PR_BRANCH" --quiet
+ git push origin -f "$PR_NUMBER" --quiet
50
51
echo -e "${GREEN}DONE!${NC}"
52
-
53
}
54
55
# check if PR_NUMBER variable is set else run git clone
56
if [ -z "$PR_NUMBER" ]; then
57
echo -e "${YELLOW}==== PR_NUMBER is not set, exiting... ====${NC}"
58
- exit 1
+ circleci-agent step halt
59
else
60
echo -e "${YELLOW}==== PR_NUMBER is set, running for preview ====${NC}"
61
do_preview
0 commit comments