This is an automated email from the ASF dual-hosted git repository.
blaginin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion-sandbox.git
The following commit(s) were added to refs/heads/main by this push:
new 4a9f34d1d Try to fix
4a9f34d1d is described below
commit 4a9f34d1d24f86747c549227ce36a8eb76bf42c9
Author: blaginin <[email protected]>
AuthorDate: Wed Nov 12 18:14:46 2025 +0000
Try to fix
---
.github/workflows/rust.yml | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index fcc922c44..cb1cb054b 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -43,6 +43,8 @@ jobs:
should_skip: ${{ steps.check.outputs.should_skip }}
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #
v5.0.0
+ with:
+ fetch-depth: 0 # Need history for comparison
- name: Check if only docs were changed
id: check
env:
@@ -63,8 +65,11 @@ jobs:
# For PRs, check if only docs/markdown were changed
echo "PR detected, checking changed files..."
- # Get changed files (comparing merge commit with base branch)
- IFS=$'\n' changed_files=($(git --no-pager diff --name-only HEAD^1))
+ # Fetch the base branch to compare against
+ git fetch origin "${{ github.base_ref }}"
+
+ # Get changed files (comparing PR head with base branch)
+ IFS=$'\n' changed_files=($(git --no-pager diff --name-only
"origin/${{ github.base_ref }}"...HEAD))
echo "Changed files:"
printf '%s\n' "${changed_files[@]}"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]