Skip to content

Commit ca5510d

Browse files
Add compare URL outputs to changelog update workflow
This update introduces steps to output compare URLs for releases and unreleased changes in the changelog update workflow. These outputs ensure improved traceability by providing direct links to version comparisons.
1 parent e5b24df commit ca5510d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/update-changelog.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
release-date: ${{ steps.release_date.outputs.date }}
3939
release-notes: ${{ github.event.release.body }}
4040
latest-version: ${{ github.event.release.tag_name }}
41+
compare-url-target-revision: ${{ github.event.release.target_commitish }}
4142

4243
# Optional
4344
# If your project keeps separate branches for major releases, and you want to point the compare URL
@@ -49,6 +50,18 @@ jobs:
4950
# is passed to the Action which will generate an invalid compare URL.
5051
# compare-url-target-revision: ${{ github.event.release.target_commitish }}
5152

53+
- name: "release_compare_url"
54+
# https://github.com/org/repo/compare/v1.0.0...v1.1.0
55+
run: "echo ${{ steps.changelog-updater.outputs.release_compare_url }}"
56+
57+
- name: "release_url_fragment"
58+
# #v100---2021-02-01
59+
run: "echo ${{ steps.changelog-updater.outputs.release_url_fragment }}"
60+
61+
- name: "unreleased_compare_url"
62+
# https://github.com/org/repo/compare/v1.0.0...HEAD
63+
run: "echo ${{ steps.changelog-updater.outputs.unreleased_compare_url }}"
64+
5265
- name: Commit updated CHANGELOG
5366
uses: stefanzweifel/git-auto-commit-action@v5
5467
with:

0 commit comments

Comments
 (0)