Skip to content

Commit

Permalink
Pass release_id to updateRelease
Browse files Browse the repository at this point in the history
  • Loading branch information
rfarine committed Nov 11, 2020
1 parent e7cfc17 commit 6b79d9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,9 @@ async function run() {

/* UPDATE PRERELEASE TO RELEASE */
if (!isPreRelease) {
console.log('what is github.context?', github.context);
return await octokit.repos.updateRelease({
...github.context.repo,
tag_name: tag,
release_id: github.context.release.id,
prerelease: false,
});
}
Expand Down
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,9 @@ export async function run() {

/* UPDATE PRERELEASE TO RELEASE */
if (!isPreRelease) {
console.log('what is github.context?', github.context);
return await octokit.repos.updateRelease({
...github.context.repo,
tag_name: tag,
release_id: github.context.release.id,
prerelease: false,
});
}
Expand Down

0 comments on commit 6b79d9d

Please sign in to comment.