Store values in current env before storing to the env file

This commit is contained in:
Zack Koppert 2023-07-03 15:57:06 -07:00 committed by GitHub
parent 98b9f97a88
commit b9cb2b121d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,11 +62,15 @@ jobs:
exit 2 exit 2
fi 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 "RELEASE_VERSION=${RELEASE_VERSION}"
echo "SEMVER_VERSION=${RELEASE_VERSION#v}" echo "SEMVER_VERSION=${SEMVER_VERSION}"
echo "SEMVER_MAJOR_VERSION=${SEMVER_VERSION%%.*}" echo "SEMVER_MAJOR_VERSION=${SEMVER_MAJOR_VERSION}"
echo "SEMVER_MAJOR_VERSION_WITH_PREFIX=v${SEMVER_MAJOR_VERSION}" echo "SEMVER_MAJOR_VERSION_WITH_PREFIX=${SEMVER_MAJOR_VERSION_WITH_PREFIX}"
} >> "${GITHUB_ENV}" } >> "${GITHUB_ENV}"
- name: Start ${{ matrix.images.environment }} Deployment - name: Start ${{ matrix.images.environment }} Deployment