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, 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
@ -63,7 +65,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(`Found yet-unpublished GitHub Release for tag '${tag}'.`) console.log(`Found yet-unpublished GitHub release for tag '${tag}'.`)
// tag must not exist // tag must not exist
const tagRefs = await restapi.git.listMatchingRefs({ const tagRefs = await restapi.git.listMatchingRefs({

View File

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