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.
This commit is contained in:
Thomas Eizinger
2025-10-28 15:48:48 +11:00
committed by GitHub
parent 994515abea
commit f2088fcf43

View File

@@ -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