Skip to content

Commit 8a5812a

Browse files
authored
Propagate changes from SciTools/iris#7271
1 parent 85f0500 commit 8a5812a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

templates/github/workflows/ci-benchmarks-run.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,10 @@ jobs:
112112
run: |
113113
first_commit=${FIRST_COMMIT}
114114
if [ "$first_commit" == "" ]
115+
# 26 hours to cope with variability in GHA start times.
115116
then
116-
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)
117119
fi
118120
119121
if [ "$first_commit" != "" ]

0 commit comments

Comments
 (0)