This commit is contained in:
Stephan 2022-03-18 17:52:23 +01:00
parent 86dab14dfd
commit 4f5e3068cc

View File

@ -42,8 +42,6 @@ module.exports = /*async*/ ({github, context, core}) => {
core.setFailed(`Could not find milestone '${version}'.`) core.setFailed(`Could not find milestone '${version}'.`)
return return
} }
console.log('MILESTONE')
console.log(milestone)
if (milestone.state != "open") { if (milestone.state != "open") {
core.setFailed(`Milestone '${version}' is already closed.`) core.setFailed(`Milestone '${version}' is already closed.`)
return return
@ -78,7 +76,8 @@ module.exports = /*async*/ ({github, context, core}) => {
const refs = await restapi.git.listMatchingRefs({ const refs = await restapi.git.listMatchingRefs({
owner: context.repo.owner, owner: context.repo.owner,
repo: context.repo.repo, repo: context.repo.repo,
ref: 'tags/' + tag //ref: 'tags/' + tag
ref: 'tags/wip'
}) })
console.log(refs) console.log(refs)
core.setFailed(`Tag '${tag}' already exists.`) core.setFailed(`Tag '${tag}' already exists.`)