1
0
This commit is contained in:
Stephan 2022-03-18 16:33:02 +01:00
parent cfa76a1ae7
commit b893475bf9

View File

@ -16,7 +16,7 @@ module.exports = /*async*/ ({github, context, core}) => {
const version = context.payload.inputs.version
const tag = "v" + version
console.log(`Validate version '${version}'.`)
const release = github.repos.getReleaseByTag({
const release = restapi.repos.getReleaseByTag({
owner: context.repo.owner,
repo: context.repo.repo,
tag: tag
@ -30,7 +30,7 @@ module.exports = /*async*/ ({github, context, core}) => {
return
}
try {
const ref = await github.git.getRef({
const ref = await restapi.git.getRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: 'tags/' + tag