diff --git a/dist/index.js b/dist/index.js index 6466c21..9177e97 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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, }); } diff --git a/index.js b/index.js index bbef96c..7c83877 100644 --- a/index.js +++ b/index.js @@ -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, }); }