fix(tag): fix tag logs
It seems like simple-git handlers don't work for custom git tag commands Promises still work, we'll try to use them then
This commit is contained in:
File diff suppressed because one or more lines are too long
14
src/main.ts
14
src/main.ts
@@ -86,10 +86,16 @@ console.log(`Running in ${baseDir}`)
|
||||
|
||||
if (getInput('tag')) {
|
||||
info('> Tagging commit...')
|
||||
await git.tag(getInput('tag').split(' '), (err, data?) => {
|
||||
if (data) setOutput('tagged', 'true')
|
||||
return log(err, data)
|
||||
})
|
||||
await git
|
||||
.tag(getInput('tag').split(' '), (err, data?) => {
|
||||
if (data) setOutput('tagged', 'true')
|
||||
return log(err, data)
|
||||
})
|
||||
.then((data) => {
|
||||
setOutput('tagged', 'true')
|
||||
return log(null, data)
|
||||
})
|
||||
.catch((err) => log(err))
|
||||
} else info('> No tag info provided.')
|
||||
|
||||
if (getInput('push')) {
|
||||
|
||||
Reference in New Issue
Block a user