Skip to content

Commit 0f35e73

Browse files
authored
Merge pull request #210 from stronk7/inject_changelog_to_release
Automatically add the version changelog section to the release notes
2 parents b382100 + 79036cf commit 0f35e73

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,20 @@ jobs:
2626
make build
2727
php build/moodle-plugin-ci.phar list
2828
29+
- name: Extract release notes from changelog
30+
id: extract-release-notes
31+
uses: yashanand1910/[email protected]
32+
with:
33+
changelog_path: docs/CHANGELOG.md
34+
version: ${{ github.ref }}
35+
2936
- name: Create Release
3037
uses: ncipollo/release-action@v1
3138
with:
3239
artifacts: build/moodle-plugin-ci.phar
3340
artifactContentType: application/zip
3441
body: |
35-
Take a look at the [CHANGELOG](https://moodlehq.github.io/moodle-plugin-ci/CHANGELOG.html) for details about the release.
42+
${{ steps.extract-release-notes.outputs.release_notes }}
43+
#
44+
Take a look at the [CHANGELOG](https://moodlehq.github.io/moodle-plugin-ci/CHANGELOG.html) for details about other releases.
3645
Please follow [3.0 Upgrade guide](https://moodlehq.github.io/moodle-plugin-ci/UPGRADE-3.0.html) when upgrading from 2.x.

docs/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
99
The format of this change log follows the advice given at [Keep a CHANGELOG](http://keepachangelog.com).
1010

1111
## [Unreleased]
12+
### Added
13+
- Improved release process: Now every version changelog (this file) is automatically added to the release notes.
1214

1315
## [3.4.8] - 2023-03-06
1416
### Changed

0 commit comments

Comments
 (0)