Skip to content

Commit 56a574c

Browse files
Copilotasmyasnikovkprokopenko
authored
Fix broken-changes action for fork PRs (#1908)
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: asmyasnikov <[email protected]> Co-authored-by: Aleksey Myasnikov <[email protected]> Co-authored-by: Konstantin Prokopenko <[email protected]>
1 parent 13d9a08 commit 56a574c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/breaking.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ jobs:
2727
run: gorelease -base=$GITHUB_BASE_REF 2>&1 > changes.txt | true
2828
- name: Print API changes
2929
run: cat changes.txt
30+
# Skip comment for forks - GITHUB_TOKEN doesn't have write permissions for external PRs
3031
- name: Comment Report
31-
if: always()
32+
if: always() && github.event.pull_request.head.repo.full_name == github.repository
3233
uses: marocchino/sticky-pull-request-comment@v2
3334
with:
3435
path: changes.txt

0 commit comments

Comments
 (0)