From d7dfa8f437ac489b39596c856ed46d866b40505c Mon Sep 17 00:00:00 2001 From: Brady Holt Date: Mon, 23 Oct 2023 12:20:55 -0500 Subject: [PATCH] Fix fetching release --- .github/workflows/publish.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a60e398..e3ff70e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -64,11 +64,12 @@ jobs: script: | const releaseId = process.env.RELEASE_ID; console.log(`Fetching release_id: ${releaseId} ...`) - const release = await github.rest.repos.getRelease({ + const getReleaseResponse = await github.rest.repos.getRelease({ release_id: process.env.RELEASE_ID, owner: context.repo.owner, repo: context.repo.repo }); + const release = getReleaseResponse.data; console.log(`Fetched release:\n\n${JSON.stringify(release)}`) const prNumbersInRelease = new Set(Array.from(release.body.matchAll(/\/pull\/(\d+)/g)).map(p=>p[1]));