exp
This commit is contained in:
parent
10c0963c6d
commit
06bdaca2c1
6
.github/workflows/publish-release.js
vendored
6
.github/workflows/publish-release.js
vendored
|
@ -104,6 +104,10 @@ module.exports = /*async*/ ({github, context, core}) => {
|
||||||
|
|
||||||
// note: getReleaseByTag only returns published releases
|
// note: getReleaseByTag only returns published releases
|
||||||
|
|
||||||
|
// note: we may eventually need to paginate
|
||||||
|
// and then releases.headers should contain what we need?
|
||||||
|
// https://octokit.github.io/rest.js/v18#pagination
|
||||||
|
|
||||||
const version = context.payload.inputs.version
|
const version = context.payload.inputs.version
|
||||||
const tag = `v${version}`
|
const tag = `v${version}`
|
||||||
const releases = await restapi.repos.listReleases({
|
const releases = await restapi.repos.listReleases({
|
||||||
|
@ -111,7 +115,7 @@ module.exports = /*async*/ ({github, context, core}) => {
|
||||||
repo: context.repo.repo
|
repo: context.repo.repo
|
||||||
})
|
})
|
||||||
console.log(releases)
|
console.log(releases)
|
||||||
const release = firstOrDefault(releases.data, (x) => x.tag == tag)
|
const release = firstOrDefault(releases.data, (x) => x.tag_name == tag)
|
||||||
return release
|
return release
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user