From 67531469f6224a53f8bbee442442c46ffde29d1f Mon Sep 17 00:00:00 2001 From: mteiting <9407284+mteiting@users.noreply.github.com> Date: Thu, 21 Sep 2023 22:17:19 +0000 Subject: [PATCH] debugging --- .github/workflows/build.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 28d5667..5a19043 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,11 +34,17 @@ jobs: MAJOR_MINOR_LATEST=$(awk -F. '{ OFS = "." } ; { print $1,$2 }' <<< $LATEST_TAG) NEW_PATCH="0" + echo $MAJOR_MINOR_LATEST + echo $BUILD_DATE + if [[ "$BUILD_DATE" = "$MAJOR_MINOR_LATEST" ]]; then PATCH_LATEST=awk -F. '{ print $3 }' <<< $LATEST_TAG NEW_PATCH=$((PATCH_LATEST + 1)) fi + + echo $PATCH_LATEST + echo $NEW_PATCH echo "release_version=$BUILD_DATE.$NEW_PATCH" >> $GITHUB_OUTPUT