Skip to content

Commit

Permalink
Update action.js
Browse files Browse the repository at this point in the history
  • Loading branch information
rimonhanna committed Oct 7, 2020
1 parent 4ea80e2 commit 7ceed52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Toolkit.run(async tools => {
['version', '--allow-same-version=true', '--git-tag-version=false', current])
console.log('current:', current, '/', 'version:', version)
newVersion = execSync(`npm version --git-tag-version=false ${version}`).toString().trim()
newVersion = `${process.env['INPUT_TAG-PREFIX']}${newVersion}`
newVersion = (process.env['INPUT_TAG-PREFIX'] != null)? `${process.env['INPUT_TAG-PREFIX']}${newVersion}`: `${newVersion}`
console.log('new version:', newVersion)
try {
// to support "actions/checkout@v1"
Expand Down

0 comments on commit 7ceed52

Please sign in to comment.