Skip to content

Commit 399de25

Browse files
edburnsCopilot
andauthored
Set PUBLISH_AS_LATEST according to whether or not this is a preview release.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 89b4184 commit 399de25

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/java-publish-maven.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,11 +298,15 @@ jobs:
298298
run: |
299299
VERSION="${{ needs.publish-maven.outputs.version }}"
300300
TAG="java/v${VERSION}"
301+
PUBLISH_AS_LATEST=true
302+
if [ "${{ inputs.prerelease }}" = "true" ]; then
303+
PUBLISH_AS_LATEST=false
304+
fi
301305
echo "Triggering site deployment for version ${VERSION} (tag: ${TAG})"
302306
gh workflow run deploy-site.yml \
303307
--repo github/copilot-sdk-java \
304308
-f version="${VERSION}" \
305-
-f publish_as_latest=true \
309+
-f publish_as_latest="${PUBLISH_AS_LATEST}" \
306310
-f monorepo_tag="${TAG}"
307311
echo "### Site Deployment" >> $GITHUB_STEP_SUMMARY
308312
echo "Triggered deploy-site.yml on github/copilot-sdk-java for version ${VERSION}" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)