From 23b3a88ba4d0ba6e6527ab8908f8ca5d2d87dd64 Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Wed, 13 Nov 2024 12:51:16 -0500 Subject: [PATCH] Add SNAPSHOT to website if no generation for release --- .../actions/spring-website-project-version-update/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/spring-website-project-version-update/action.yml b/.github/actions/spring-website-project-version-update/action.yml index c49ac0d..03ba0f2 100644 --- a/.github/actions/spring-website-project-version-update/action.yml +++ b/.github/actions/spring-website-project-version-update/action.yml @@ -34,7 +34,7 @@ runs: OSS_SUPPORT_END_DATE=$(eval $SPRING_WEBSITE_CLIENT/generations/${MAJOR_MINOR}.x | jq '.ossSupportEndDate' | tr -d \") - if [[ $OSS_SUPPORT_END_DATE > $(date '+%F') ]] + if [[ -z $OSS_SUPPORT_END_DATE || $OSS_SUPPORT_END_DATE > $(date '+%F') ]] then NEXT_SNAPSHOT=${{ inputs.newVersion }}