Skip to content

Commit

Permalink
handle exit code manually
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Apr 27, 2021
1 parent e1cb0e9 commit a254482
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,19 @@ jobs:
command: |
git fetch origin master
cd ./scripts/release && yarn && cd ../../
# Don't exit immediately but handle the exit code
set +e
scripts/release/download-experimental-build.js --commit=$(git merge-base HEAD origin/master)
# broken base build?
if [ $? -eq 64 ]
if [ $? -eq 0 ]
then
mv ./build2 ./base-build
elif [ $? -eq 64 ]
then
echo "Ignoring broken base build"
exit 0
else
exit $?
fi
mv ./build2 ./base-build
- persist_to_workspace:
root: .
paths:
Expand Down

0 comments on commit a254482

Please sign in to comment.