mirror of
https://github.com/ButlerLogic/action-autotag.git
synced 2024-11-10 02:11:08 +07:00
WIP
This commit is contained in:
parent
cc392c0d67
commit
85976544cf
@ -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({
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user