File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 2929 - name : Checkout
3030 uses : actions/checkout@v4.3.0
3131 with :
32- # We need at least one commit before master to compare against
33- fetch-depth : 5
32+ # It's possible that new commits get merged into master since the PR
33+ # was opened. We need a safe buffer to make sure that our use of merge-head
34+ # leter always finds the true parent of the first PR commit.
35+ fetch-depth : 100
3436
3537 - name : React With Rocket
3638 uses : actions/github-script@v7.1.0
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ echo "[ci-plutus-benchmark]: Running benchmark for PR branch at $PR_BRANCH_REF .
60602>&1 cabal bench " $BENCHMARK_NAME " | tee bench-PR.log
6161
6262echo " [ci-plutus-benchmark]: Switching branches ..."
63+ # merge-base finds the fork point, which is the true parent of the first PR commit.
6364git checkout " $( git merge-base HEAD origin/master) "
6465BASE_BRANCH_REF=$( git rev-parse --short HEAD)
6566
You can’t perform that action at this time.
0 commit comments