File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -21,18 +21,18 @@ if [ -z "${BASE_BRANCH}" ]; then
21
21
BASE_BRANCH=develop
22
22
fi
23
23
24
- git switch ${BASE_BRANCH}
25
- git fetch origin
24
+ git switch ${BASE_BRANCH} || exit $?
25
+ git fetch origin || exit $?
26
26
git diff origin/${BASE_BRANCH} | if [ " $0 " = " " ]; then
27
27
echo " git diff found local changes on ${BASE_BRANCH} branch, cannot cut release."
28
28
elif [ " $NEW_VERSION " = " " ]; then
29
29
echo " No version set. Are you just copying and pasting this without checking?"
30
30
else
31
- git pull origin ${BASE_BRANCH} --ff-only
32
- git switch -c " prepare-${NEW_VERSION} "
31
+ git pull origin ${BASE_BRANCH} --ff-only || exit $?
32
+ git switch -c " prepare-${NEW_VERSION} " || exit $?
33
33
34
- cargo install --path cargo-pgrx --locked
35
- cargo pgrx init
34
+ cargo install --path cargo-pgrx --locked || exit $?
35
+ cargo pgrx init || exit $?
36
36
37
37
# exit early if the script fails
38
38
./update-versions.sh " ${NEW_VERSION} " || exit $?
41
41
# git diff -- . ':(exclude)Cargo.lock'
42
42
43
43
# send it all to github
44
- git commit -a -m " Update version to ${NEW_VERSION} "
45
- git push --set-upstream origin " prepare-${NEW_VERSION} "
44
+ git commit -a -m " Update version to ${NEW_VERSION} " || exit $?
45
+ git push --set-upstream origin " prepare-${NEW_VERSION} " || exit $?
46
46
fi
47
47
You can’t perform that action at this time.
0 commit comments