Skip to content

Commit 3a62053

Browse files
Merge pull request #6 from sifive/fix-release-notes
Fix release notes generation with GitHub Action
2 parents 96d3833 + d0767fc commit 3a62053

File tree

2 files changed

+4
-36
lines changed

2 files changed

+4
-36
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,11 @@ jobs:
2727
run: git fetch --prune --unshallow
2828

2929
- name: 'Create Release Notes'
30+
uses: sifive/action-release-notes@v1
3031
id: create-release-notes
31-
run: |
32-
tag=$(echo ${{ github.ref }} | cut -d '/' -f 3)
33-
release_notes=$(./scripts/create-release-notes.sh ${{ env.PROJECT_NAME }} ${tag})
34-
# The string passed to Actions must urlencode newlines.
35-
release_notes="${release_notes//$'\n'/'%0A'}"
36-
# Use a magic "workflow command" to set the output for the step.
37-
echo "::set-output name=release-notes::${release_notes}"
32+
with:
33+
project-name: ${{ env.PROJECT_NAME }}
34+
release: ${{ github.ref }}
3835

3936
- name: 'Create Release'
4037
uses: actions/create-release@v1

scripts/create-release-notes.sh

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)