1
0
This commit is contained in:
Stephan 2022-03-18 18:10:55 +01:00
parent d8cd3257e0
commit c090c23662

View File

@ -44,13 +44,11 @@ module.exports = /*async*/ ({github, context, core}) => {
// github release must exist and not be published yet
try {
const release = restapi.repos.getReleaseByTag({
const release = await restapi.repos.getReleaseByTag({
owner: context.repo.owner,
repo: context.repo.repo,
tag: tag
})
console.log('RELEASE')
console.log(release)
if (release === null) {
core.setFailed(`Could not find a GitHub release for tag '${tag}'.`)
return
@ -88,7 +86,7 @@ module.exports = /*async*/ ({github, context, core}) => {
const tag = "v" + version
console.log(`Publish GitHub release '${version}'.`)
const release = restapi.repos.getReleaseByTag({
const release = await restapi.repos.getReleaseByTag({
owner: context.repo.owner,
repo: context.repo.repo,
tag: tag