Skip to content

Commit

Permalink
don't assume pr event at all
Browse files Browse the repository at this point in the history
  • Loading branch information
edknv committed Nov 7, 2023
1 parent 48a3401 commit 70f247e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/gpu-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,8 @@ jobs:
head: `${context.repo.owner}:${context.ref.replace('refs/heads/', '')}`
})
// Set issue number for following calls from context (if on pull request event)
// or from above variable.
const issueNumber = context.issue.number || pullRequests.data[0].number
github.rest.issues.createComment({
issue_number: issueNumber,
issue_number: pullRequests.data[0].number,
owner: context.repo.owner,
repo: context.repo.repo,
body: require('fs').readFileSync('${{ env.PR_COMMENT }}').toString()
Expand Down

0 comments on commit 70f247e

Please sign in to comment.