diff --git a/.github/workflows/lexer-benchmark.yml b/.github/workflows/lexer-benchmark.yml index 9c41005f0..53de7ef7b 100644 --- a/.github/workflows/lexer-benchmark.yml +++ b/.github/workflows/lexer-benchmark.yml @@ -83,9 +83,14 @@ jobs: echo "cd packages/mysql-on-sqlite && composer run bench-lexer" echo '```' } > "$RUNNER_TEMP/comment.md" + cat "$RUNNER_TEMP/comment.md" >> "$GITHUB_STEP_SUMMARY" echo "COMMENT_FILE=$RUNNER_TEMP/comment.md" >> "$GITHUB_ENV" - name: Post or update the PR comment + # Fork pull requests run with a read-only token and cannot post + # comments. For those, the benchmark results are available in the job + # summary above, and the step is skipped so that the check succeeds. + if: github.event.pull_request.head.repo.fork != true uses: actions/github-script@v7 with: script: |