This commit is contained in:
Corey Butler 2020-04-01 14:28:38 -05:00
parent cc392c0d67
commit 85976544cf
2 changed files with 3 additions and 1 deletions

View File

@ -116,11 +116,11 @@ export default class Tag {
type: 'commit'
})
this._sha = newTag.data.sha
core.warning(`Created new tag: ${newTag.data.tag}`)
// Create reference
let newReference
this._sha = newTag.data.sha
try {
newReference = await github.git.createRef({

View File

@ -51,6 +51,8 @@ async function run () {
core.getInput('tag_suffix', { required: false })
)
core.warning(`Attempting to create ${tag.name} tag.`)
// Check for existance of tag and abort (short circuit) if it already exists.
if (await tag.exists()) {
core.warning(`"${tag.name}" tag already exists.` + os.EOL)