5959 git add .
6060 git commit -m "Update to version ${{ steps.determine-versions.outputs.RELEASE_VERSION }}"
6161
62+ # Create release notes
63+ python .pipeline/scripts/release_notes_automation.py --version ${{ steps.determine-versions.outputs.RELEASE_VERSION }} --folder "docs/release-notes"
64+ git add .
65+ git commit -m "Add new release notes"
66+
6267 # We need to get the commit id, and push the branch so the release tag will point at the right commit afterwards
6368 RELEASE_COMMIT_ID=$(git log -1 --pretty=format:"%H")
6469 echo "RELEASE_COMMIT_ID=$RELEASE_COMMIT_ID" >> $GITHUB_OUTPUT
@@ -135,11 +140,16 @@ jobs:
135140 git config --global user.email "[email protected] " 136141 git config --global user.name "SAP Cloud SDK Bot"
137142
138- - name : " Set New Version"
143+ - name : " Set New Version and Reset Release Notes "
139144 run : |
140145 python .pipeline/scripts/set-release-versions.py --version ${{ needs.bump-version.outputs.new-version }}
141146 git add .
142147 git commit -m "Update to version ${{ needs.bump-version.outputs.new-version }}"
148+
149+ # Reset release notes for next version
150+ cp .pipeline/scripts/release_notes_template.md docs/release-notes/release_notes.md
151+ git add docs/release-notes/release_notes.md
152+ git commit -m "Reset release notes"
143153 git push
144154
145155 - name : " Create Code PR"
@@ -148,7 +158,7 @@ jobs:
148158
149159 PR_URL=$(gh pr create --title "Release ${{ needs.bump-version.outputs.release-version }}" --body "## TODOs
150160 - [ ] Review the changes in [the release commit]($COMMIT_URL)
151- - [ ] Update the Release notes
161+ - [ ] If major release: Update header of .pipeline/scripts/release_notes_template.md
152162 - [ ] Review the [Draft Release](${{ needs.create-release.outputs.release-url }})
153163 - [ ] Review **and approve** this PR
154164 - [ ] Trigger the [Perform Release Workflow](${{ github.event.repository.html_url }}/actions/workflows/perform-release.yml)
0 commit comments