From deb8d1cbc8cfe23821f67ff6a368cbf51391cd6c Mon Sep 17 00:00:00 2001 From: smutel Date: Fri, 1 Jan 2021 21:47:41 +0100 Subject: [PATCH] ci: Fix get tag --- .github/workflows/release.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aac8368b1..37a3bb611 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,10 +32,12 @@ jobs: gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} passphrase: ${{ secrets.PASSPHRASE }} + - name: Get tag + id: tag + uses: dawidd6/action-get-tag@v1 + - name: Generate CHANGELOG for this version - run: ./utils/getChangelogRelease CHANGELOG.md $TAG > /tmp/RELEASE_CHANGELOG.md - env: - TAG: ${{ github.event.release.tag_name }} + run: ./utils/getChangelogRelease CHANGELOG.md ${{ steps.tag.outputs.tag }} > /tmp/RELEASE_CHANGELOG.md - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2.4.1