diff --git a/README.md b/README.md index b45ad05..e29fd75 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ This action will bump version, tag commit and generate a changelog with conventi - **Optional** `skip-version-file`: Do not update the version file. Default `'false'`. - **Optional** `skip-commit`: Do create a release commit. Default `'false'`. - **Optional** `pre-commit`: Path to the pre-commit script file. No hook by default. -- **Optional** `fallback-version`: The fallback version, if none is recognized. Default `'0.1.0'` +- **Optional** `fallback-version`: The fallback version, if no older one can be detected, or if it is the first one. Default `'0.1.0'` ### Pre-Commit hook diff --git a/action.yml b/action.yml index 57143ef..fc44ad1 100644 --- a/action.yml +++ b/action.yml @@ -84,7 +84,7 @@ inputs: required: false fallback-version: - description: 'The fallback version, if none is recognized' + description: 'The fallback version, if no older one can be detected, or if it is the first one' default: '0.1.0' required: false diff --git a/src/helpers/bumpVersion.js b/src/helpers/bumpVersion.js index f3db399..f81410a 100644 --- a/src/helpers/bumpVersion.js +++ b/src/helpers/bumpVersion.js @@ -42,5 +42,7 @@ module.exports = (releaseType, version) => { } } + core.info(`The version could not be detected, the new version is '${major}.${minor}.${patch}'.`) + return `${major}.${minor}.${patch}` }