1
0
This commit is contained in:
Stephan 2022-03-18 18:08:47 +01:00
parent 93e9740904
commit d8cd3257e0
2 changed files with 3 additions and 4 deletions

View File

@ -49,6 +49,8 @@ module.exports = /*async*/ ({github, context, core}) => {
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
@ -63,7 +65,7 @@ module.exports = /*async*/ ({github, context, core}) => {
core.setFailed(`Could not find a GitHub release for tag '${tag}'.`)
return
}
console.log(`Found yet-unpublished GitHub Release for tag '${tag}'.`)
console.log(`Found yet-unpublished GitHub release for tag '${tag}'.`)
// tag must not exist
const tagRefs = await restapi.git.listMatchingRefs({

View File

@ -34,9 +34,6 @@ jobs:
const scriptf = require('./.github/workflows/publish-release.js')
const script = scriptf({github, context, core})
await script.validateRelease()
// rest should be in a different step
// await script.publishRelease()
// await script.closeMilestone()
- name: Finalize GitHub release and milestone
if: github.event.inputs.dryrun == false