exp
This commit is contained in:
parent
d8cd3257e0
commit
c090c23662
6
.github/workflows/publish-release.js
vendored
6
.github/workflows/publish-release.js
vendored
|
@ -44,13 +44,11 @@ module.exports = /*async*/ ({github, context, core}) => {
|
||||||
|
|
||||||
// github release must exist and not be published yet
|
// github release must exist and not be published yet
|
||||||
try {
|
try {
|
||||||
const release = restapi.repos.getReleaseByTag({
|
const release = await restapi.repos.getReleaseByTag({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
tag: tag
|
tag: tag
|
||||||
})
|
})
|
||||||
console.log('RELEASE')
|
|
||||||
console.log(release)
|
|
||||||
if (release === null) {
|
if (release === null) {
|
||||||
core.setFailed(`Could not find a GitHub release for tag '${tag}'.`)
|
core.setFailed(`Could not find a GitHub release for tag '${tag}'.`)
|
||||||
return
|
return
|
||||||
|
@ -88,7 +86,7 @@ module.exports = /*async*/ ({github, context, core}) => {
|
||||||
const tag = "v" + version
|
const tag = "v" + version
|
||||||
console.log(`Publish GitHub release '${version}'.`)
|
console.log(`Publish GitHub release '${version}'.`)
|
||||||
|
|
||||||
const release = restapi.repos.getReleaseByTag({
|
const release = await restapi.repos.getReleaseByTag({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
tag: tag
|
tag: tag
|
||||||
|
|
Loading…
Reference in New Issue
Block a user