Skip to content

Commit d03272a

Browse files
Update CLI to v1.6.0: Add --heading-text option (#21)
* Upgrade CLI * Add and use --heading-text option * Update README.md
1 parent ebeb411 commit d03272a

File tree

5 files changed

+29
-20
lines changed

5 files changed

+29
-20
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ This workflow uses the output variables generated by this Action to accomplish t
132132

133133
## Inputs
134134

135-
Checkout [`action.yml`](https://github.com/stefanzweifel/changelog-updater-action/blob/main/action.yml) for a full list of supported inputs.
135+
Checkout [`action.yml`](https://github.com/stefanzweifel/changelog-updater-action/blob/main/action.yml) for a full list of supported inputs.
136+
Check the README of the [underlying CLI](https://github.com/stefanzweifel/php-changelog-updater#cli-options) to learn more about them.
136137

137138
## Expected Changelog Formats
138139

action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ inputs:
2323
required: false
2424
default: HEAD
2525
description: Target revision used in compare URL inside a possible "Unreleased" heading.
26+
heading-text:
27+
required: false
28+
default: null
29+
description: Text used in the new release heading. Defaults to the value from latest-version.
2630

2731
outputs:
2832
release_compare_url:
@@ -45,3 +49,4 @@ runs:
4549
- ${{ inputs.release-date }}
4650
- ${{ inputs.path-to-changelog }}
4751
- ${{ inputs.compare-url-target-revision }}
52+
- ${{ inputs.heading-text }}

changelog-updater

26.7 KB
Binary file not shown.

composer.lock

Lines changed: 21 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ php /changelog-updater update \
66
--release-date="$3" \
77
--path-to-changelog="$4" \
88
--compare-url-target-revision="$5" \
9+
--heading-text="$6" \
910
--github-actions-output \
1011
--write

0 commit comments

Comments
 (0)