We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a5cd18 commit d956a13Copy full SHA for d956a13
.github/workflows/preview_release_notes.yml
@@ -34,7 +34,8 @@ jobs:
34
- name: Summarize results
35
run: cat release_notes_tmp.md >> $GITHUB_STEP_SUMMARY
36
- name: Update PR comment
37
- if: github.event_name == 'pull_request'
+ # If the PR is from a fork, we cannot update the comment using read only permissions
38
+ if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
39
run: gh issue comment $ISSUE --edit-last --create-if-none --body-file release_notes_tmp.md
40
env:
41
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments