Skip to content

Commit 22a738a

Browse files
committed
👷 Source $BASH_ENV before checking if latest
1 parent 95809b7 commit 22a738a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.circleci/config.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,9 @@ jobs:
157157
python scripts/link_to_set_version.py ${BUILD_VERSION}
158158
- run:
159159
name: 🔖 Checking if latest
160-
command: if $(python /home/circleci/build/scripts/is_latest.py /tmp/repo/docs); then cp -r /home/circleci/build/docs/${BUILD_VERSION} /home/circleci/build/docs/latest; fi
160+
command: |
161+
source $BASH_ENV
162+
if $(python /home/circleci/build/scripts/is_latest.py /tmp/repo/docs); then rm -rf /tmp/repo/docs/latest && cp -r /home/circleci/build/docs/${BUILD_VERSION} /tmp/repo/docs/latest; fi
161163
- deploy
162164

163165
workflows:

0 commit comments

Comments
 (0)