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 <seaneagan1@gmail.com>
This commit is contained in:
Sean Eagan 2021-03-10 11:54:48 -06:00
parent 2351051ffd
commit 0234731e51

View File

@ -99,15 +99,16 @@ jobs:
sudo npm install github-release-notes -g sudo npm install github-release-notes -g
- name: Generate release notes - name: Generate release notes
run: | run: |
TAG_NAME=${TAG##*/}
gren changelog --override --generate \ gren changelog --override --generate \
--username airshipit --repo airshipctl \ --username airshipit --repo airshipctl \
--changelog-filename release-notes.md \ --changelog-filename release-notes.md \
--token "$GITHUB_TOKEN" \ --token "$GITHUB_TOKEN" \
--tags "$TAGS" \ --tags "$TAG_NAME" \
--debug --debug
cat release-notes.md cat release-notes.md
env: env:
TAGS: ${{ github.ref }} TAG: ${{ github.ref }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Go - name: Setup Go
uses: actions/setup-go@v2 uses: actions/setup-go@v2