We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bada255 commit 2056cc2Copy full SHA for 2056cc2
.github/actions/get-changed-files/get-changed-files.sh
@@ -18,8 +18,9 @@ git fetch --depth=1 origin main
18
git fetch --depth=1 origin ${INPUT_HEAD:-HEAD}
19
20
# Get diff with status information
21
+# Find the merge-base (common ancestor) instead of using origin/main directly
22
echo "__ running git diff with status __"
-DIFF_OUTPUT=$(git diff --name-status origin/main origin/${INPUT_HEAD:-HEAD})
23
+DIFF_OUTPUT=$(git diff --name-status origin/main...origin/${INPUT_HEAD:-HEAD})
24
25
# Function to extract files by pattern from diff output
26
extract_files() {
0 commit comments