fix(ci): Release workflow

github.* doesn't exist anymore. Instead everything there is now
available under github.rest.*

Ref: https://github.com/octokit/plugin-rest-endpoint-methods.js/releases/tag/v5.0.0
This commit is contained in:
patrick96 2024-08-17 13:36:59 +02:00 committed by Patrick Ziegler
parent 1ba083cdb2
commit 469d0536e8
1 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ jobs:
script: |
const tag = '${{ env.RELEASE_TAG }}';
console.log(`Getting Upload URL for '${tag}'`);
const release = await github.repos.getReleaseByTag({
const release = await github.rest.repos.getReleaseByTag({
owner: context.repo.owner,
repo: context.repo.repo,
tag: tag
@ -97,7 +97,7 @@ jobs:
body += `[${fname}](${url}) (**sha256**: \`${hash}\`)\n\n`
body += process.env.RELEASE_BODY;
const release = await github.repos.updateRelease({
const release = await github.rest.repos.updateRelease({
owner: context.repo.owner,
repo: context.repo.repo,
release_id: '${{ env.RELEASE_ID}}',