Skip to content

Commit

Permalink
fix: Use getBooleanInput for boolean values
Browse files Browse the repository at this point in the history
Fixes #161
  • Loading branch information
TriPSs committed May 27, 2022
1 parent 0a67543 commit ae32d56
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion src/helpers/git.js
Expand Up @@ -175,8 +175,9 @@ module.exports = new (class Git {

if (!SKIPPED_COMMIT) {
expectedCommands.push('git add .')
if (SKIP_CI === false) {
if (SKIP_CI === 'false') {
expectedCommands.push(`git commit -m "chore(release): ${EXPECTED_TAG}"`)

} else {
expectedCommands.push(`git commit -m "chore(release): ${EXPECTED_TAG} [skip ci]"`)
}
Expand Down
12 changes: 6 additions & 6 deletions src/index.js
Expand Up @@ -28,22 +28,22 @@ async function run() {
let gitCommitMessage = core.getInput('git-message')
const gitUserName = core.getInput('git-user-name')
const gitUserEmail = core.getInput('git-user-email')
const gitPush = core.getInput('git-push').toLowerCase() === 'true'
const gitPush = core.getBooleanInput('git-push')
const tagPrefix = core.getInput('tag-prefix')
const preset = !core.getInput('config-file-path') ? core.getInput('preset') : ''
const preCommitFile = core.getInput('pre-commit')
const outputFile = core.getInput('output-file')
const releaseCount = core.getInput('release-count')
const versionFile = core.getInput('version-file')
const versionPath = core.getInput('version-path')
const skipGitPull = core.getInput('skip-git-pull').toLowerCase() === 'true'
const skipVersionFile = core.getInput('skip-version-file').toLowerCase() === 'true'
const skipCommit = core.getInput('skip-commit').toLowerCase() === 'true'
const skipEmptyRelease = core.getInput('skip-on-empty').toLowerCase() === 'true'
const skipGitPull = core.getBooleanInput('skip-git-pull')
const skipVersionFile = core.getBooleanInput('skip-version-file')
const skipCommit = core.getBooleanInput('skip-commit')
const skipEmptyRelease = core.getBooleanInput('skip-on-empty')
const conventionalConfigFile = core.getInput('config-file-path')
const preChangelogGenerationFile = core.getInput('pre-changelog-generation')
const gitUrl = core.getInput('git-url')
const skipCi = core.getInput('skip-ci')
const skipCi = core.getBooleanInput('skip-ci')

if (skipCi) {
gitCommitMessage += " [skip ci]"
Expand Down

0 comments on commit ae32d56

Please sign in to comment.