From 4324121b393793503be4c9cfdcc6f3857331d609 Mon Sep 17 00:00:00 2001 From: Ozan Gunalp Date: Tue, 17 Dec 2024 22:35:06 +0100 Subject: [PATCH] Tag latest only when releasing from main branch (#2863) --- justfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/justfile b/justfile index a404459b7..79057625c 100755 --- a/justfile +++ b/justfile @@ -36,7 +36,7 @@ deploy-docs version: ./mvnw -B -ntp clean compile -pl documentation cd documentation pipenv install - pipenv run mike deploy --update-aliases --push --remote origin {{version}} "latest" + pipenv run mike deploy --update-aliases --push --remote origin {{version}} $(git merge-base --is-ancestor HEAD origin/main && echo '"latest"' || echo '') # Clear RevAPI justifications clear-revapi: