- specify toTag from ref

This commit is contained in:
Mike Penz
2020-10-16 20:04:06 +02:00
parent 4905bd8728
commit 0bfbf81712
+7
View File
@@ -57,9 +57,16 @@ jobs:
with:
fetch-depth: 0 # Checkout full depth so tags can be discovered automatically if not specified
- name: Prepare Tag
if: startsWith(github.ref, 'refs/tags/')
id: tag_version
run: echo ::set-output name=VERSION::$(echo ${GITHUB_REF:10})
- name: "Build Changelog"
id: github_release
uses: mikepenz/release-changelog-builder-action@main
with:
toTag: ${{ steps.tag_version.outputs.VERSION }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}