1 parent 85f0500 commit 8a5812aCopy full SHA for 8a5812a
1 file changed
templates/github/workflows/ci-benchmarks-run.yml
@@ -112,8 +112,10 @@ jobs:
112
run: |
113
first_commit=${FIRST_COMMIT}
114
if [ "$first_commit" == "" ]
115
+ # 26 hours to cope with variability in GHA start times.
116
then
- first_commit=$(git log --after="$(date -d "1 day ago" +"%Y-%m-%d") 23:00:00" --pretty=format:"%h" | tail -n 1)
117
+ cutoff_utc=$(date -u -d "26 hours ago" +"%Y-%m-%dT%H:%M:%SZ")
118
+ first_commit=$(git rev-list --since="$cutoff_utc" --reverse HEAD | head -n 1)
119
fi
120
121
if [ "$first_commit" != "" ]
0 commit comments