fix tag bug in release workflow

progress on #275
This commit is contained in:
classabbyamp 2020-10-06 22:58:20 -04:00 committed by GitHub
parent 27863ae6bf
commit 7c818cfb34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -30,13 +30,14 @@ jobs:
echo ::set-output name=subject::${SUBJECT}
echo ::set-output name=body::${BODY}
echo ::set-output name=current_version::${GITHUB_REF#refs/tags/v}
echo ::set-output name=version_tag::${GITHUB_REF#refs/tags/}
echo ::set-output name=version::${GITHUB_REF#refs/tags/v}
- name: Get Changelog Content
id: changelog_reader
uses: mindsers/changelog-reader-action@v2
with:
version: ${{ steps.get_tag.outputs.current_version }}
version: ${{ steps.get_tag.outputs.version }}
path: ./CHANGELOG.md
- name: Publish Release
@ -45,7 +46,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.changelog_reader.outputs.version }}
tag_name: ${{ steps.get_tag.outputs.version_tag }}
release_name: ${{ steps.get_tag.outputs.subject }}
body: |
${{ steps.get_tag.outputs.body }}