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 @@ -851,11 +851,14 @@ jobs:
851851 id : process
852852 run : yarn ci:process
853853 working-directory : packages/replay/metrics
854+ # Don't run on forks - the PR comment cannot be added.
855+ if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
854856 env :
855857 GITHUB_TOKEN : ${{ github.token }}
856858
857859 - name : Upload results
858860 uses : actions/upload-artifact@v3
861+ if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
859862 with :
860863 name : ${{ steps.process.outputs.artifactName }}
861864 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