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:
parent
2351051ffd
commit
0234731e51
5
.github/workflows/release.yaml
vendored
5
.github/workflows/release.yaml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user