exp
This commit is contained in:
parent
cfa76a1ae7
commit
b893475bf9
4
.github/workflows/publish-release.js
vendored
4
.github/workflows/publish-release.js
vendored
|
@ -16,7 +16,7 @@ module.exports = /*async*/ ({github, context, core}) => {
|
||||||
const version = context.payload.inputs.version
|
const version = context.payload.inputs.version
|
||||||
const tag = "v" + version
|
const tag = "v" + version
|
||||||
console.log(`Validate version '${version}'.`)
|
console.log(`Validate version '${version}'.`)
|
||||||
const release = github.repos.getReleaseByTag({
|
const release = restapi.repos.getReleaseByTag({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
tag: tag
|
tag: tag
|
||||||
|
@ -30,7 +30,7 @@ module.exports = /*async*/ ({github, context, core}) => {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
const ref = await github.git.getRef({
|
const ref = await restapi.git.getRef({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
ref: 'tags/' + tag
|
ref: 'tags/' + tag
|
||||||
|
|
Loading…
Reference in New Issue
Block a user