Skip to content

Commit

Permalink
Fix release notes generation with GitHub Action
Browse files Browse the repository at this point in the history
Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
  • Loading branch information
nategraff-sifive committed May 4, 2020
1 parent 8331f14 commit 5968e7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 36 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,11 @@ jobs:
run: git fetch --prune --unshallow

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

- name: 'Create Release'
uses: actions/create-release@v1
Expand Down
29 changes: 0 additions & 29 deletions scripts/create-release-notes.sh

This file was deleted.

0 comments on commit 5968e7c

Please sign in to comment.