Skip to content

Commit 1f55485

Browse files
committed
Fix conditional usage within pipefail in CCI
1 parent 223f993 commit 1f55485

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.circleci/config.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -878,9 +878,13 @@ jobs:
878878
name: "Require released code"
879879
command: |
880880
LAST_TAG="aztec-packages-v$(jq -r '.["."]' .release-please-manifest.json)"
881-
git ls-remote --tags origin | grep -q "$LAST_TAG" && echo "Using code released from $LAST_TAG" || { echo "Skipping as $LAST_TAG is not yet published" && exit 0; }
882-
echo "INCLUDE_RELEASED_CODE=1" >> docs/.env
883-
git fetch origin --refetch --no-filter refs/tags/$LAST_TAG:refs/tags/$LAST_TAG
881+
if git ls-remote --tags origin | grep "$LAST_TAG" > /dev/null; then
882+
echo "Using code released from $LAST_TAG"
883+
echo "INCLUDE_RELEASED_CODE=1" >> docs/.env
884+
git fetch origin --refetch --no-filter refs/tags/$LAST_TAG:refs/tags/$LAST_TAG
885+
else
886+
echo "Skipping as $LAST_TAG is not yet published"
887+
fi
884888
- run:
885889
name: "Build docs"
886890
command: build docs

0 commit comments

Comments
 (0)