From 469d0536e8f5318d8415444947090cdde787eda7 Mon Sep 17 00:00:00 2001
From: patrick96
Date: Sat, 17 Aug 2024 13:36:59 +0200
Subject: [PATCH] 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
---
.github/workflows/release.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 1fd317c8..a43fd477 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -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}}',