File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
packages/replay/metrics/src/util Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -791,11 +791,14 @@ jobs:
791791 id : process
792792 run : yarn ci:process
793793 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
794796 env :
795797 GITHUB_TOKEN : ${{ github.token }}
796798
797799 - name : Upload results
798800 uses : actions/upload-artifact@v3
801+ if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
799802 with :
800803 name : ${{ steps.process.outputs.artifactName }}
801804 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<
9898 body : commentBuilder . body ,
9999 } ) ;
100100 } else {
101- console . log ( `Adding new PR comment to PR ${ prNumber } ` )
101+ console . log ( `Adding a new comment to PR ${ prNumber } ` )
102102 await octokit . rest . issues . createComment ( {
103103 ...defaultArgs ,
104104 issue_number : prNumber ,
You can’t perform that action at this time.
0 commit comments