From 636940cdbfc084b35f7856489ece1db67af01c08 Mon Sep 17 00:00:00 2001 From: ll-nick <68419636+ll-nick@users.noreply.github.com> Date: Mon, 11 Nov 2024 09:44:57 +0100 Subject: [PATCH] Set VERSION env in a more reuseable manner Co-authored-by: Piotr Spieker --- .github/workflows/bump-version-and-create-release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/bump-version-and-create-release.yaml b/.github/workflows/bump-version-and-create-release.yaml index ab523a2..184a83b 100644 --- a/.github/workflows/bump-version-and-create-release.yaml +++ b/.github/workflows/bump-version-and-create-release.yaml @@ -22,7 +22,7 @@ jobs: - name: Read version from file run: | # Read the version from the version file, only store the number (without the 'v') - INITIAL_VERSION=$(cat version | cut -d'v' -f2) + INITIAL_VERSION=$(source version && echo ${VERSION#v}) echo "Current version: $INITIAL_VERSION" echo "INITIAL_VERSION=${INITIAL_VERSION}" >> $GITHUB_ENV