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 committed May 4, 2020
2 parents 96d3833 + d0767fc commit 3a62053
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 3a62053

Please sign in to comment.