From 0bfbf817125f51d197c146ac9e42eeecfae93754 Mon Sep 17 00:00:00 2001 From: Mike Penz Date: Fri, 16 Oct 2020 20:04:06 +0200 Subject: [PATCH] - specify toTag from ref --- .github/workflows/ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a4d21ad..1185a6a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }}