exp
This commit is contained in:
parent
fa0c7b9ac1
commit
86dab14dfd
3
.github/workflows/publish-release.js
vendored
3
.github/workflows/publish-release.js
vendored
|
@ -75,11 +75,12 @@ module.exports = /*async*/ ({github, context, core}) => {
|
||||||
|
|
||||||
// tag must not exist
|
// tag must not exist
|
||||||
try {
|
try {
|
||||||
const ref = await restapi.git.getRef({
|
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
|
||||||
})
|
})
|
||||||
|
console.log(refs)
|
||||||
core.setFailed(`Tag '${tag}' already exists.`)
|
core.setFailed(`Tag '${tag}' already exists.`)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user