Skip to content

Commit

Permalink
Merge pull request #6 from sifive/fix-release-notes
Browse files Browse the repository at this point in the history
Fix release notes generation with GitHub Action
  • Loading branch information
nategraff-sifive authored May 4, 2020
2 parents d9be8c5 + ca1c054 commit 1eaafa4
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 @@ -27,14 +27,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 1eaafa4

Please sign in to comment.