-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from AxonFramework/automatic-release-notes
Added automatic release notes on milestone closure
- Loading branch information
Showing
2 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
releasenotes: | ||
sections: | ||
- title: "Features" | ||
emoji: ":star:" | ||
labels: [ "Type: Feature" ] | ||
- title: "Enhancements" | ||
emoji: ":chart_with_upwards_trend:" | ||
labels: [ "Type: Enhancement" ] | ||
- title: "Bug Fixes" | ||
emoji: ":beetle:" | ||
labels: [ "Type: Bug" ] | ||
- title: "Dependency Upgrade" | ||
emoji: ":hammer_and_wrench:" | ||
labels: [ "Type: Dependency Upgrade" ] | ||
issues: | ||
exclude: | ||
labels: [ "Type: Incorrect Repository", "Type: Question" ] | ||
contributors: | ||
exclude: | ||
names: [ "dependabot" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Trigger the workflow on milestone events | ||
on: | ||
milestone: | ||
types: [closed] | ||
name: Milestone Closure | ||
jobs: | ||
create-release-notes: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@master | ||
- name: Create Release Notes Markdown | ||
uses: docker://decathlon/release-notes-generator-action:2.1.0 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | ||
OUTPUT_FOLDER: temp_release_notes | ||
USE_MILESTONE_TITLE: "true" | ||
- name: Get the name of the created Release Notes file and extract Version | ||
run: | | ||
RELEASE_NOTES_FILE=$(ls temp_release_notes/*.md | head -n 1) | ||
echo "RELEASE_NOTES_FILE=$RELEASE_NOTES_FILE" >> $GITHUB_ENV | ||
VERSION=$(echo ${{ github.event.milestone.title }} | cut -d' ' -f2) | ||
echo "VERSION=$VERSION" >> $GITHUB_ENV | ||
- name: Create a Draft Release Notes on GitHub | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | ||
with: | ||
tag_name: axon-mongo-${{ env.VERSION }} | ||
release_name: Axon Mongo Extension v${{ env.VERSION }} | ||
body_path: ${{ env.RELEASE_NOTES_FILE }} | ||
draft: true |