exp
This commit is contained in:
parent
143637c4fc
commit
77f77c3e8b
4
.github/workflows/publish-release.js
vendored
4
.github/workflows/publish-release.js
vendored
|
@ -48,8 +48,7 @@ module.exports = /*async*/ ({github, context, core}) => {
|
||||||
core.setFailed(`Could not find a GitHub release for tag '${tag}'.`)
|
core.setFailed(`Could not find a GitHub release for tag '${tag}'.`)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
console.log(release)
|
if (!release.draft) {
|
||||||
if (release.draft) {
|
|
||||||
core.setFailed(`GitHub release for tag '${tag}' is already published.`)
|
core.setFailed(`GitHub release for tag '${tag}' is already published.`)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -115,7 +114,6 @@ module.exports = /*async*/ ({github, context, core}) => {
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo
|
repo: context.repo.repo
|
||||||
})
|
})
|
||||||
console.log(releases)
|
|
||||||
const release = firstOrDefault(releases.data, (x) => x.tag_name == tag)
|
const release = firstOrDefault(releases.data, (x) => x.tag_name == tag)
|
||||||
return release
|
return release
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user