Commit 271f689482c for php.net
commit 271f689482c8efdaa8b2b5ac11e8172c25335bdd
Author: Máté Kocsis <kocsismate@woohoolabs.com>
Date: Fri Aug 21 23:28:48 2026 +0200
Retrieve the full commit SHA from the database of the real-time benchmark
diff --git a/.github/workflows/real-time-benchmark.yml b/.github/workflows/real-time-benchmark.yml
index 2e223320084..b017a1b67c0 100644
--- a/.github/workflows/real-time-benchmark.yml
+++ b/.github/workflows/real-time-benchmark.yml
@@ -163,12 +163,15 @@ jobs:
EOF
- name: Setup PHP config - previous PHP version
if: github.event_name != 'workflow_dispatch'
+ env:
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -e
DATABASE="./php-version-benchmarks/docs/results/${{ env.YEAR }}/database.tsv"
if [ -f "$DATABASE" ]; then
LAST_RESULT_SHA="$(tail -n 2 "$DATABASE" | head -n 1 | cut -f 6)"
+ LAST_RESULT_SHA="$(gh api "/repos/${{ github.repository }}/commits/$LAST_RESULT_SHA" --jq '.sha')"
else
YESTERDAY="$(date -d "-2 day 23:59:59" "+%Y-%m-%dT%H:%M:%SZ")"
LAST_RESULT_SHA="$(gh api "/repos/${{ github.repository }}/commits?sha=${{ env.BRANCH }}&until=$YESTERDAY&per_page=1" --jq '.[0].sha')"