Skip to content

Commit

Permalink
Adds workflow to populate release body
Browse files Browse the repository at this point in the history
  • Loading branch information
spamoom committed May 19, 2020
1 parent 7cb5ca2 commit 0910963
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,17 @@ jobs:
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}

- name: Checkout code
uses: actions/checkout@v2

- name: Build changelog
id: release_notes
run: |
RELEASE_NOTES=$(git --no-pager log --pretty=tformat:"* %h - %s" $(git describe --tags --abbrev=0 @^)..@)
RELEASE_NOTES="${RELEASE_NOTES//$'\n'/ }"
echo "::set-output name=contents::$RELEASE_NOTES"
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
Expand All @@ -43,7 +51,8 @@ jobs:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: true
body: TODO
body: |
${{ steps.release_notes.outputs.contents }}
- name: Upload Release Asset
id: upload-release-asset
Expand Down

0 comments on commit 0910963

Please sign in to comment.