Skip to content

Commit f554add

Browse files
committed
Generate release notes automatically
1 parent 775cd35 commit f554add

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

.github/workflows/Release.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,15 @@ jobs:
1010
steps:
1111
- name: Checkout code
1212
uses: actions/checkout@v5
13+
1314
- name: Get Version Number
1415
uses: fwilhe2/bump-version@main
1516
id: bump
17+
1618
- run: echo New Version Number ${{ steps.bump.outputs.newVersion }}
19+
1720
- name: Create Release
1821
run: |
19-
gh release create ${{ steps.bump.outputs.newVersion }} --title "Release ${{ steps.bump.outputs.newVersion }}" --notes-file release-notes-draft.md
22+
gh release create ${{ steps.bump.outputs.newVersion }} --title "Release ${{ steps.bump.outputs.newVersion }}" --generate-notes
2023
env:
2124
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22-
- run: |
23-
echo "" > release-notes-draft.md
24-
if [[ `git status --porcelain` ]]; then
25-
git config --global user.name 'Florian Wilhelm'
26-
git config --global user.email 'fwilhelm.wgt+github@gmail.com'
27-
git commit -am "Prepare next development iteration"
28-
git push
29-
else
30-
echo Release has no changelog
31-
fi
32-
REL_BRANCH=$(echo ${{ steps.bump.outputs.newVersion }} | cut --delimiter "." --fields 1)
33-
git checkout -b $REL_BRANCH
34-
git push -f origin $REL_BRANCH

release-notes-draft.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)