@@ -108,6 +108,17 @@ jobs:
108
108
# - `--force` since we're overwriting the `vN` tag
109
109
git push origin --atomic --force refs/tags/"${VERSION}" refs/tags/"${major_version_tag}"
110
110
111
+ - name : Prepare partial Changelog
112
+ env :
113
+ PARTIAL_CHANGELOG : " ${{ runner.temp }}/partial_changelog.md"
114
+ VERSION : " ${{ steps.getVersion.outputs.version }}"
115
+ run : |
116
+ python .github/workflows/script/prepare_changelog.py CHANGELOG.md "$VERSION" > $PARTIAL_CHANGELOG
117
+
118
+ echo "::group::Partial CHANGELOG"
119
+ cat $PARTIAL_CHANGELOG
120
+ echo "::endgroup::"
121
+
111
122
- name : Create mergeback branch
112
123
if : ${{ steps.check.outputs.exists != 'true' && endsWith(github.ref_name, steps.getVersion.outputs.latest_release_branch) }}
113
124
env :
@@ -151,24 +162,15 @@ jobs:
151
162
--assignee "${GITHUB_ACTOR}" \
152
163
--draft
153
164
154
-
155
- - name : Prepare the partial Changelog
156
- env :
157
- VERSION : " ${{ steps.getVersion.outputs.version }}"
158
- PARTIAL_CHANGELOG : " ${{ runner.temp }}/partial_changelog.md"
159
- run : |
160
- # Prepare the partial changelog for the release notes
161
- python .github/workflows/script/prepare_changelog.py CHANGELOG.md "$VERSION"> $PARTIAL_CHANGELOG
162
-
163
165
- name : Create the GitHub release
164
166
env :
165
- VERSION : " ${{ steps.getVersion.outputs.version }}"
166
167
PARTIAL_CHANGELOG : " ${{ runner.temp }}/partial_changelog.md"
168
+ VERSION : " ${{ steps.getVersion.outputs.version }}"
167
169
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
168
170
run : |
169
171
# Do not mark this release as latest. The most recent CLI release must be marked as latest.
170
172
gh release create \
171
173
"$VERSION" \
172
174
--latest=false \
173
- -t "$VERSION" \
174
- -F "$PARTIAL_CHANGELOG"
175
+ --title "$VERSION" \
176
+ --notes-file "$PARTIAL_CHANGELOG"
0 commit comments