Update main.js

This commit is contained in:
Corey Butler 2020-01-26 21:02:56 -06:00 committed by GitHub
parent 3b1615aba7
commit 39667b74ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,7 +91,7 @@ async function run() {
// Check for existance of tag and abort (short circuit) if it already exists.
for (let tag of tags.data) {
if (tag.name === getTagName(pkg.version)) {
core.warning(`"${tag.name.trim()}" tag already exists.`)
core.info(`"${tag.name.trim()}" tag already exists.`)
core.setOutput('tagname', '')
return
}
@ -124,7 +124,7 @@ async function run() {
)
.join('\n')
} catch (e) {
core.warning('Failed to generate changelog from commits: ' + e.message)
core.info('Failed to generate changelog from commits: ' + e.message)
tagMsg = tagName
}
}
@ -141,7 +141,7 @@ async function run() {
type: 'commit',
})
core.warning(`Created new tag: ${newTag.data.tag}`)
core.info(`Created new tag: ${newTag.data.tag}`)
} catch (e) {
core.setFailed(e.message)
return
@ -155,7 +155,7 @@ async function run() {
sha: newTag.data.sha,
})
core.warning(`Reference ${newReference.data.ref} available at ${newReference.data.url}`)
core.info(`Reference ${newReference.data.ref} available at ${newReference.data.url}`)
} catch (e) {
core.warning({
...repo,