File tree 2 files changed +4
-1
lines changed
packages/replay/metrics/src/util
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -791,11 +791,14 @@ jobs:
791
791
id : process
792
792
run : yarn ci:process
793
793
working-directory : packages/replay/metrics
794
+ # Don't run on forks - the PR comment cannot be added.
795
+ if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
794
796
env :
795
797
GITHUB_TOKEN : ${{ github.token }}
796
798
797
799
- name : Upload results
798
800
uses : actions/upload-artifact@v3
801
+ if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
799
802
with :
800
803
name : ${{ steps.process.outputs.artifactName }}
801
804
path : ${{ steps.process.outputs.artifactPath }}
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ async function tryAddOrUpdateComment(commentBuilder: PrCommentBuilder): Promise<
98
98
body : commentBuilder . body ,
99
99
} ) ;
100
100
} else {
101
- console . log ( `Adding new PR comment to PR ${ prNumber } ` )
101
+ console . log ( `Adding a new comment to PR ${ prNumber } ` )
102
102
await octokit . rest . issues . createComment ( {
103
103
...defaultArgs ,
104
104
issue_number : prNumber ,
You can’t perform that action at this time.
0 commit comments