Skip to content

Commit

Permalink
feat: add noNewCommitBehavior option
Browse files Browse the repository at this point in the history
  • Loading branch information
NGPixel committed Jan 5, 2024
1 parent fc64c94 commit 1c436e1
Show file tree
Hide file tree
Showing 6 changed files with 47,654 additions and 26,110 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ jobs:
| `patchAll` | If set to `true`, will ignore `patchList` and always count commits as a Patch. | :x: | `false` |
| `skipInvalidTags` | If set to `true`, will skip tags that are not valid semver until it finds a proper one (up to 10 from latest). | :x: | `false` |
| `noVersionBumpBehavior` | Whether to exit with an error *(default)*, a warning, the current version or silently when none of the commits result in a version bump. (Possible values: `error`, `warn`, `current` or `silent`) | :x: | `error` |
| `noNewCommitBehavior` | Whether to exit with an error *(default)*, a warning, the current version or silently when there are no new commits since the latest tag. (Possible values: `error`, `warn`, `current` or `silent`) | :x: | `error` |
| `prefix` | A prefix that will be ignored when parsing tags (e.g. `foobar/`). Useful for monorepos. The prefix will be added back to the output values. | :x: | |
| `additionalCommits` | A list of additional commit messages to parse in order to calculate semver. | :x: | |
| `fromTag` | Override the tag to use when comparing against the branch in order to fetch the list of commits. | :x: | |
Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ inputs:
description: Whether to exit with an error, warning or silently when none of the commits result in a version bump. (error, warn, current, silent)
required: false
default: error
noNewCommitBehavior:
description: Whether to exit with an error, warning or silently when there are no new commits since the latest tag. (error, warn, current, silent)
required: false
default: error
prefix:
description: A prefix that will be ignored when parsing tags. Useful for monorepos. The prefix will be added back to the output values.
required: false
Expand Down
Loading

0 comments on commit 1c436e1

Please sign in to comment.