Fixes the real time benchmark

First of all, the last successful build had been before opcache was made required - therefore the PHP_OPCACHE setting should be 2 to manually enable it.

Then, the manual flow should comment on the PR of the triggering repo (github.repository), not the repo of the benchmarked code (env.REPOSITORY).
This commit is contained in:
Máté Kocsis 2025-08-01 10:12:38 +02:00
parent 6f630a882d
commit e8f88e746b
No known key found for this signature in database
GPG key ID: FD055E41728BF310

View file

@ -192,7 +192,7 @@ jobs:
PHP_BRANCH=${{ env.BRANCH }}
PHP_COMMIT=$LAST_RESULT_SHA
PHP_OPCACHE=1
PHP_OPCACHE=2
PHP_JIT=0
EOF
- name: Setup PHP config - benchmarked PHP version
@ -270,7 +270,7 @@ jobs:
run: |
cd ./php-version-benchmarks/tmp/php_${{ env.ID }}
NEWEST_RESULT_DIRECTORY=$(ls -td ${{ github.workspace }}/php-version-benchmarks/docs/results/${{ env.YEAR }}/*/ | head -1)
gh pr comment ${{ inputs.pull_request }} --body-file "${NEWEST_RESULT_DIRECTORY}result.md" --repo ${{ env.REPOSITORY }}
gh pr comment ${{ inputs.pull_request }} --body-file "${NEWEST_RESULT_DIRECTORY}result.md" --repo ${{ github.repository }}
- name: Cleanup
if: always()
run: |