Skip to content

Commit e3346a2

Browse files
author
Charles Lehnert
committed
fix: support git-path config option for version bump
1 parent 07677b3 commit e3346a2

4 files changed

Lines changed: 6 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This action will bump version, tag commit and generate a changelog with conventi
1212
- **Optional** `git-push`: Push all the GIT changes. Default `true`
1313
- **Optional** `git-branch`: The branch used to push. Default is the current branch (`${{ github.ref }}`)
1414
- **Optional** `git-url`: Git repository domain. Default is `github.com`
15-
- **Optional** `git-path`: Path filter for the logs. If set, only commits that match the path filter will be considered. By default, we won't use this feature(empty string).
15+
- **Optional** `git-path`: Path filter for the logs and version. If set, only commits that match the path filter will be considered. By default, we won't use this feature(empty string).
1616
- **Optional** `preset`: Preset that is used from conventional commits. Default is `angular` ([learn more about presents here](https://github.com/TriPSs/conventional-changelog-action/issues/223))
1717
- **Optional** `tag-prefix`: Prefix for the git tags. Default `v`.
1818
- **Optional** `input-file`: Read the changelog from this file. This will prepend the newly generated changelogs to the file's content.

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ inputs:
127127
required: false
128128

129129
git-path:
130-
description: "Path filter for the logs. If set, only commits that match the path filter will be considered"
130+
description: "Path filter for the logs and version. If set, only commits that match the path filter will be considered"
131131
default: ""
132132
required: false
133133

dist/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34885,7 +34885,8 @@ async function run() {
3488534885
preset: await loadPreset(preset),
3488634886
tagPrefix,
3488734887
config,
34888-
skipUnstable: !prerelease
34888+
skipUnstable: !prerelease,
34889+
path: gitPath
3488934890
})
3489034891

3489134892
core.info(`Recommended release type: ${recommendation.releaseType}`)

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ async function run() {
105105
preset: await loadPreset(preset),
106106
tagPrefix,
107107
config,
108-
skipUnstable: !prerelease
108+
skipUnstable: !prerelease,
109+
path: gitPath
109110
})
110111

111112
core.info(`Recommended release type: ${recommendation.releaseType}`)

0 commit comments

Comments
 (0)