Skip to content

Commit

Permalink
Fix conditional usage within pipefail in CCI
Browse files Browse the repository at this point in the history
  • Loading branch information
spalladino committed Jan 4, 2024
1 parent 5c6d9bb commit 7c33ec8
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -878,9 +878,13 @@ jobs:
name: "Require released code"
command: |
LAST_TAG="aztec-packages-v$(jq -r '.["."]' .release-please-manifest.json)"
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; }
echo "INCLUDE_RELEASED_CODE=1" >> docs/.env
git fetch origin --refetch --no-filter refs/tags/$LAST_TAG:refs/tags/$LAST_TAG
if git ls-remote --tags origin | grep "$LAST_TAG" > /dev/null; then
echo "Using code released from $LAST_TAG"
echo "INCLUDE_RELEASED_CODE=1" >> docs/.env
git fetch origin --refetch --no-filter refs/tags/$LAST_TAG:refs/tags/$LAST_TAG
else
echo "Skipping as $LAST_TAG is not yet published"
fi
- run:
name: "Build docs"
command: build docs
Expand Down

0 comments on commit 7c33ec8

Please sign in to comment.