From f2088fcf438169c6ff73323a948a836414137bd4 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Tue, 28 Oct 2025 15:48:48 +1100 Subject: [PATCH] ci: use `base_ref` instead of `base_sha` (#10743) CI sometimes appears to have issues where it cannot find a certain commit. Referencing the `ref` directly should fix this. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2080131c6..ae6ae9276 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -60,7 +60,7 @@ jobs: if [ "${{ github.event_name }}" = "merge_group" ]; then # Base ref could be a few commits away, so fetch a few commits in case the queue is long git fetch origin ${{ github.event.merge_group.base_ref }} --depth=20 - git diff --name-only ${{ github.event.merge_group.base_sha }} ${{ github.sha }} > changed_files.txt + git diff --name-only ${{ github.event.merge_group.base_ref }} ${{ github.sha }} > changed_files.txt echo "Changed files:" cat changed_files.txt