Skip to content

Commit 18dafc2

Browse files
authored
Merge pull request #141 from gocardless/template-changes
Explicitly set release title so it matches the tag name
2 parents 89a4d8c + 41dd638 commit 18dafc2

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,14 @@ jobs:
138138
run: |
139139
git config user.name "github-actions[bot]"
140140
git config user.email "github-actions[bot]@users.noreply.github.com"
141-
git tag v${{ needs.check_version.outputs.version }}
142-
git push origin v${{ needs.check_version.outputs.version }}
141+
TAG="v${{ needs.check_version.outputs.version }}"
142+
git tag "$TAG"
143+
git push origin "$TAG"
143144
NOTES="${{ steps.notes.outputs.notes }}"
144145
if [ -n "$(echo "$NOTES" | tr -d '[:space:]')" ]; then
145-
gh release create v${{ needs.check_version.outputs.version }} --notes "$NOTES"
146+
gh release create "$TAG" --title "$TAG" --notes "$NOTES"
146147
else
147-
gh release create v${{ needs.check_version.outputs.version }} --generate-notes
148+
gh release create "$TAG" --title "$TAG" --generate-notes
148149
fi
149150
env:
150151
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)