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]));