Skip to content

Commit

Permalink
Fix fetching release
Browse files Browse the repository at this point in the history
  • Loading branch information
bradymholt committed Oct 23, 2023
1 parent 5d4f419 commit d7dfa8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]));
Expand Down

0 comments on commit d7dfa8f

Please sign in to comment.