fix: Use `getBooleanInput` for boolean values

Fixes #161
releases/v3
Tycho Bokdam 2022-05-27 16:03:30 +02:00
parent 0a675435c0
commit ae32d567b6
No known key found for this signature in database
GPG Key ID: F1180857DB997467
2 changed files with 8 additions and 7 deletions

View File

@ -175,8 +175,9 @@ module.exports = new (class Git {
if (!SKIPPED_COMMIT) { if (!SKIPPED_COMMIT) {
expectedCommands.push('git add .') expectedCommands.push('git add .')
if (SKIP_CI === false) { if (SKIP_CI === 'false') {
expectedCommands.push(`git commit -m "chore(release): ${EXPECTED_TAG}"`) expectedCommands.push(`git commit -m "chore(release): ${EXPECTED_TAG}"`)
} else { } else {
expectedCommands.push(`git commit -m "chore(release): ${EXPECTED_TAG} [skip ci]"`) expectedCommands.push(`git commit -m "chore(release): ${EXPECTED_TAG} [skip ci]"`)
} }

View File

@ -28,7 +28,7 @@ async function run() {
let gitCommitMessage = core.getInput('git-message') let gitCommitMessage = core.getInput('git-message')
const gitUserName = core.getInput('git-user-name') const gitUserName = core.getInput('git-user-name')
const gitUserEmail = core.getInput('git-user-email') 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 tagPrefix = core.getInput('tag-prefix')
const preset = !core.getInput('config-file-path') ? core.getInput('preset') : '' const preset = !core.getInput('config-file-path') ? core.getInput('preset') : ''
const preCommitFile = core.getInput('pre-commit') const preCommitFile = core.getInput('pre-commit')
@ -36,14 +36,14 @@ async function run() {
const releaseCount = core.getInput('release-count') const releaseCount = core.getInput('release-count')
const versionFile = core.getInput('version-file') const versionFile = core.getInput('version-file')
const versionPath = core.getInput('version-path') const versionPath = core.getInput('version-path')
const skipGitPull = core.getInput('skip-git-pull').toLowerCase() === 'true' const skipGitPull = core.getBooleanInput('skip-git-pull')
const skipVersionFile = core.getInput('skip-version-file').toLowerCase() === 'true' const skipVersionFile = core.getBooleanInput('skip-version-file')
const skipCommit = core.getInput('skip-commit').toLowerCase() === 'true' const skipCommit = core.getBooleanInput('skip-commit')
const skipEmptyRelease = core.getInput('skip-on-empty').toLowerCase() === 'true' const skipEmptyRelease = core.getBooleanInput('skip-on-empty')
const conventionalConfigFile = core.getInput('config-file-path') const conventionalConfigFile = core.getInput('config-file-path')
const preChangelogGenerationFile = core.getInput('pre-changelog-generation') const preChangelogGenerationFile = core.getInput('pre-changelog-generation')
const gitUrl = core.getInput('git-url') const gitUrl = core.getInput('git-url')
const skipCi = core.getInput('skip-ci') const skipCi = core.getBooleanInput('skip-ci')
if (skipCi) { if (skipCi) {
gitCommitMessage += " [skip ci]" gitCommitMessage += " [skip ci]"