Skip to content

Commit

Permalink
fix: support git-path config option for version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
binomialstew committed Feb 23, 2024
1 parent 07677b3 commit e3346a2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This action will bump version, tag commit and generate a changelog with conventi
- **Optional** `git-push`: Push all the GIT changes. Default `true`
- **Optional** `git-branch`: The branch used to push. Default is the current branch (`${{ github.ref }}`)
- **Optional** `git-url`: Git repository domain. Default is `github.com`
- **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).
- **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).
- **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))
- **Optional** `tag-prefix`: Prefix for the git tags. Default `v`.
- **Optional** `input-file`: Read the changelog from this file. This will prepend the newly generated changelogs to the file's content.
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ inputs:
required: false

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

Expand Down
3 changes: 2 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34885,7 +34885,8 @@ async function run() {
preset: await loadPreset(preset),
tagPrefix,
config,
skipUnstable: !prerelease
skipUnstable: !prerelease,
path: gitPath
})

core.info(`Recommended release type: ${recommendation.releaseType}`)
Expand Down
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ async function run() {
preset: await loadPreset(preset),
tagPrefix,
config,
skipUnstable: !prerelease
skipUnstable: !prerelease,
path: gitPath
})

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

0 comments on commit e3346a2

Please sign in to comment.