Skip to content

Commit b4e2157

Browse files
committed
fix(ci): use github auto-generated release notes
1 parent db5cd57 commit b4e2157

3 files changed

Lines changed: 5 additions & 10 deletions

File tree

.github/workflows/docker-image.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,7 @@ jobs:
9797
docker push $DOCKERHUB_REPO:latest
9898
docker push $DOCKERHUB_REPO:$TAG_NAME
9999
100-
- name: Extract Release Notes
101-
id: extract_notes
102-
run: |
103-
awk '/^## \[/ { if (p) exit; p=1; next } p' CHANGELOG.md > release_notes.md
104-
105100
- name: Create GitHub Release
106101
uses: softprops/action-gh-release@v2
107102
with:
108-
body_path: release_notes.md
103+
generate_release_notes: true

openspec/changes/archive/2026-02-28-github-releases/specs/ci-publishing/spec.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
### Requirement: Automated GitHub Releases
44
The pipeline SHALL automatically create a GitHub Release when a `v*.*.*` semantic version tag is pushed.
5-
- The release MUST include release notes extracted from the `CHANGELOG.md` corresponding to the latest release block.
5+
- The release MUST automatically generate release notes containing the commit messages/PRs since the last tag.
66
- The release MUST be created using the `GITHUB_TOKEN` provided by the Actions runner.
77

88
#### Scenario: Creating a release on tag push
99
- **WHEN** a semantic version tag (e.g., `v1.0.0`) is pushed and tests pass
1010
- **THEN** a GitHub Release is created for the tag
11-
- **THEN** the release body contains the relevant changelog notes
11+
- **THEN** the release body contains the auto-generated commit log

openspec/specs/ci-publishing/spec.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ The CI pipeline SHALL include automated workflows that check for updates to crit
7474

7575
### Requirement: Automated GitHub Releases
7676
The pipeline SHALL automatically create a GitHub Release when a `v*.*.*` semantic version tag is pushed.
77-
- The release MUST include release notes extracted from the `CHANGELOG.md` corresponding to the latest release block.
77+
- The release MUST automatically generate release notes containing the commit messages/PRs since the last tag.
7878
- The release MUST be created using the `GITHUB_TOKEN` provided by the Actions runner.
7979

8080
#### Scenario: Creating a release on tag push
8181
- **WHEN** a semantic version tag (e.g., `v1.0.0`) is pushed and tests pass
8282
- **THEN** a GitHub Release is created for the tag
83-
- **THEN** the release body contains the relevant changelog notes
83+
- **THEN** the release body contains the auto-generated commit log

0 commit comments

Comments
 (0)