From 70a1c1ed6cf04102b3f09769cd720e7596b0ac87 Mon Sep 17 00:00:00 2001 From: Snehil Kishore Date: Mon, 28 Oct 2024 13:23:34 +0530 Subject: [PATCH] Changes in get-version workflow --- .github/actions/get-version/action.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/actions/get-version/action.yml b/.github/actions/get-version/action.yml index 387fdba6..4dafb528 100644 --- a/.github/actions/get-version/action.yml +++ b/.github/actions/get-version/action.yml @@ -17,7 +17,5 @@ runs: - id: get_version shell: bash run: | - VERSION=$(echo ${BRANCH_NAME} | sed -r 's#release/+##g') + VERSION=$(head -1 .version) echo "VERSION=${VERSION}" >> $GITHUB_OUTPUT - env: - BRANCH_NAME: ${{ github.event.pull_request.head.ref }}