From 134667790629252ad158a769fe6ccf82ec12d585 Mon Sep 17 00:00:00 2001 From: Sunil Thaha Date: Wed, 13 Oct 2021 18:50:19 +1000 Subject: [PATCH] ci: get release version from VERSION file (#28) Previously the release workflow computed the release version from commit message. This PR modifies it use the `VERSION` file to obtain the release version. Signed-off-by: Sunil Thaha --- .github/workflows/test_release.yaml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/test_release.yaml b/.github/workflows/test_release.yaml index 6a678b48..c82a51ed 100644 --- a/.github/workflows/test_release.yaml +++ b/.github/workflows/test_release.yaml @@ -126,19 +126,12 @@ jobs: fetch-depth: 0 token: ${{ secrets.REPOSITORY_PUSH_TOKEN }} - - name: Extract release version - id: release_version - run: | - commit_message='${{ github.event.head_commit.message }}' - version=$(echo $commit_message | sed 's/chore(release)\: \(.*\)/\1/g') - echo "::set-output name=release_as::$version" - - name: Generate release notes run: | # Create the release notes for the Github release git config user.name rhobs-release-bot git config user.email release-bot@monitoring.rhobs.io - npx standard-version -i RELEASE_BODY.md --release-as ${{ steps.release_version.outputs.release_as }} --skip.commit + npx standard-version -i RELEASE_BODY.md --release-as $(cat VERSION) --skip.commit - name: Publish tag id: publish_tag