[PHP-CVS] [php-src] master: Retrieve the full commit SHA from the database of the real-time benchmark

[email protected] (Máté Kocsis)
Newsgroups php.cvs
Message-ID <[email protected]>
Author: Máté Kocsis (kocsismate)
Date: 2026-08-21T23:28:48+02:00

Commit: https://github.com/php/php-src/commit/271f689482c8efdaa8b2b5ac11e8172c25335bdd
Raw diff: https://github.com/php/php-src/commit/271f689482c8efdaa8b2b5ac11e8172c25335bdd.diff

Retrieve the full commit SHA from the database of the real-time benchmark

Changed paths:
  M  .github/workflows/real-time-benchmark.yml


Diff:

diff --git a/.github/workflows/real-time-benchmark.yml b/.github/workflows/real-time-benchmark.yml
index 2e2233200844..b017a1b67c07 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')"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.