mirror of https://github.com/polybar/polybar.git
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:
parent
1ba083cdb2
commit
469d0536e8
|
@ -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}}',
|
||||
|
|
Loading…
Reference in New Issue