Skip to content

Commit

Permalink
Debug script failure
Browse files Browse the repository at this point in the history
  • Loading branch information
bradymholt committed Oct 23, 2023
1 parent 1cdd1c8 commit 1889a1e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,13 @@ jobs:
uses: actions/github-script@v6
with:
script: |
console.log(`Fetching release_id: ${steps.create-release.outputs.id} ...`)
const release = await github.rest.repos.getRelease({
release_id: '${{ steps.create-release.outputs.id }}',
owner: context.repo.owner,
repo: context.repo.repo
});
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 1889a1e

Please sign in to comment.