Skip to content

Commit

Permalink
Add more debugging (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
bradymholt authored Oct 23, 2023
1 parent 55f3b05 commit f7e1c00
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 @@ -63,6 +63,7 @@ jobs:
with:
script: |
const releaseId = process.env.RELEASE_ID;
console.log(`Fetching release_id: ${releaseId} ...`);
const getReleaseResponse = await github.rest.repos.getRelease({
release_id: process.env.RELEASE_ID,
owner: context.repo.owner,
Expand All @@ -73,6 +74,7 @@ jobs:
const prNumbersInRelease = new Set(Array.from(release.body.matchAll(/\/pull\/(\d+)/g)).map(p=>p[1]));
for(let prNumber of prNumbersInRelease) {
console.log(`Adding comment on PR #${prNumber} ...`);
await github.rest.issues.createComment({
issue_number: prNumber,
owner: context.repo.owner,
Expand Down

0 comments on commit f7e1c00

Please sign in to comment.