exp
This commit is contained in:
parent
93e9740904
commit
d8cd3257e0
4
.github/workflows/publish-release.js
vendored
4
.github/workflows/publish-release.js
vendored
|
@ -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({
|
||||||
|
|
3
.github/workflows/publish-release.yml
vendored
3
.github/workflows/publish-release.yml
vendored
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user