Compare commits
5 Commits
143637c4fc
...
7bc1195651
Author | SHA1 | Date | |
---|---|---|---|
|
7bc1195651 | ||
|
786c441206 | ||
|
558f12143c | ||
|
2cd8137eeb | ||
|
77f77c3e8b |
4
.github/workflows/publish-release.js
vendored
4
.github/workflows/publish-release.js
vendored
|
@ -48,8 +48,7 @@ module.exports = /*async*/ ({github, context, core}) => {
|
|||
core.setFailed(`Could not find a GitHub release for tag '${tag}'.`)
|
||||
return
|
||||
}
|
||||
console.log(release)
|
||||
if (release.draft) {
|
||||
if (!release.draft) {
|
||||
core.setFailed(`GitHub release for tag '${tag}' is already published.`)
|
||||
return
|
||||
}
|
||||
|
@ -115,7 +114,6 @@ module.exports = /*async*/ ({github, context, core}) => {
|
|||
owner: context.repo.owner,
|
||||
repo: context.repo.repo
|
||||
})
|
||||
console.log(releases)
|
||||
const release = firstOrDefault(releases.data, (x) => x.tag_name == tag)
|
||||
return release
|
||||
}
|
||||
|
|
6
.github/workflows/publish-release.yml
vendored
6
.github/workflows/publish-release.yml
vendored
|
@ -36,11 +36,11 @@ jobs:
|
|||
await script.validateRelease()
|
||||
|
||||
- name: Finalize GitHub release and milestone
|
||||
if: github.event.inputs.dryrun == false
|
||||
if: ${{ github.event.inputs.dryrun == 'false' }}
|
||||
uses: actions/github-script@v5
|
||||
with:
|
||||
script: |
|
||||
const scriptf = require('./.github/workflows/publish-release.js')
|
||||
const script = scriptf({github, context, core})
|
||||
//await script.publishRelease()
|
||||
//await script.closeMilestone()
|
||||
await script.publishRelease()
|
||||
await script.closeMilestone()
|
||||
|
|
Loading…
Reference in New Issue
Block a user