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}'.`)
|
core.setFailed(`Could not find a GitHub release for tag '${tag}'.`)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
console.log(release)
|
if (!release.draft) {
|
||||||
if (release.draft) {
|
|
||||||
core.setFailed(`GitHub release for tag '${tag}' is already published.`)
|
core.setFailed(`GitHub release for tag '${tag}' is already published.`)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -115,7 +114,6 @@ module.exports = /*async*/ ({github, context, core}) => {
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo
|
repo: context.repo.repo
|
||||||
})
|
})
|
||||||
console.log(releases)
|
|
||||||
const release = firstOrDefault(releases.data, (x) => x.tag_name == tag)
|
const release = firstOrDefault(releases.data, (x) => x.tag_name == tag)
|
||||||
return release
|
return release
|
||||||
}
|
}
|
||||||
|
|
6
.github/workflows/publish-release.yml
vendored
6
.github/workflows/publish-release.yml
vendored
|
@ -36,11 +36,11 @@ jobs:
|
||||||
await script.validateRelease()
|
await script.validateRelease()
|
||||||
|
|
||||||
- name: Finalize GitHub release and milestone
|
- name: Finalize GitHub release and milestone
|
||||||
if: github.event.inputs.dryrun == false
|
if: ${{ github.event.inputs.dryrun == 'false' }}
|
||||||
uses: actions/github-script@v5
|
uses: actions/github-script@v5
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
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.publishRelease()
|
await script.publishRelease()
|
||||||
//await script.closeMilestone()
|
await script.closeMilestone()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user