Skip to content

Commit

Permalink
ci: get release version from VERSION file (#28)
Browse files Browse the repository at this point in the history
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 <sthaha@redhat.com>
  • Loading branch information
sthaha authored Oct 13, 2021
1 parent cbe2464 commit 1346677
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/test_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1346677

Please sign in to comment.