From 0234731e5102643c7cf0600fc76f54d98f002a05 Mon Sep 17 00:00:00 2001 From: Sean Eagan Date: Wed, 10 Mar 2021 11:54:48 -0600 Subject: [PATCH] Fix tag name in release workflow The gren tool expects the tag name to not include the refs/tags prefix, so this removes that from the `github.ref` variable. Change-Id: Ied065b3e021841d0a04d2ccfd6e743171f2a8f54 Signed-off-by: Sean Eagan --- .github/workflows/release.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index edf4af8fa..02303e86b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -99,15 +99,16 @@ jobs: sudo npm install github-release-notes -g - name: Generate release notes run: | + TAG_NAME=${TAG##*/} gren changelog --override --generate \ --username airshipit --repo airshipctl \ --changelog-filename release-notes.md \ --token "$GITHUB_TOKEN" \ - --tags "$TAGS" \ + --tags "$TAG_NAME" \ --debug cat release-notes.md env: - TAGS: ${{ github.ref }} + TAG: ${{ github.ref }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Setup Go uses: actions/setup-go@v2