Skip to content

Commit

Permalink
CI: Modified release-drafter.yml to create release note with drafted …
Browse files Browse the repository at this point in the history
…content

Signed-off-by: Arunagirinadan Sudharshan <sudhan.aruna.97@gmail.com>
  • Loading branch information
SudhanAruna committed Dec 21, 2020
1 parent 971fe8a commit 68b6f01
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,15 @@ jobs:
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5
- name: Drafting release
id: release_drafter
uses: release-drafter/release-drafter@v5
with:
config-name: release-drafter.yml
env:
GITHUB_TOKEN: ${{ secrets.RELEASEDRAFTER_PAT }}
GITHUB_TOKEN: ${{ secrets.RELEASEDRAFTER_PAT }}
- name: Write release to file
run: |
CONTENT=${{ steps.release_drafter.outputs.body }}
TAG=${{ steps.release_drafter.outputs.tag_name }}
prinf '%b\n' "---\nlayout: default\n---\n\n${CONTENT}" > ./docs/_releases/${TAG}.md

0 comments on commit 68b6f01

Please sign in to comment.