From b9cb2b121dbade91f2589f8e10664a8cea89be81 Mon Sep 17 00:00:00 2001 From: Zack Koppert Date: Mon, 3 Jul 2023 15:57:06 -0700 Subject: [PATCH] Store values in current env before storing to the env file --- .github/workflows/release.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 74282e92..85b79c08 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -62,11 +62,15 @@ jobs: exit 2 fi + SEMVER_VERSION=${RELEASE_VERSION#v} + SEMVER_MAJOR_VERSION=${SEMVER_VERSION%%.*} + SEMVER_MAJOR_VERSION_WITH_PREFIX=v${SEMVER_MAJOR_VERSION} + { echo "RELEASE_VERSION=${RELEASE_VERSION}" - echo "SEMVER_VERSION=${RELEASE_VERSION#v}" - echo "SEMVER_MAJOR_VERSION=${SEMVER_VERSION%%.*}" - echo "SEMVER_MAJOR_VERSION_WITH_PREFIX=v${SEMVER_MAJOR_VERSION}" + echo "SEMVER_VERSION=${SEMVER_VERSION}" + echo "SEMVER_MAJOR_VERSION=${SEMVER_MAJOR_VERSION}" + echo "SEMVER_MAJOR_VERSION_WITH_PREFIX=${SEMVER_MAJOR_VERSION_WITH_PREFIX}" } >> "${GITHUB_ENV}" - name: Start ${{ matrix.images.environment }} Deployment