Quellcode durchsuchen

Change git command from ls-tree to ls-remote

jimsterino98 vor 1 Monat
Ursprung
Commit
aeb35967bb
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      .github/actions/kernel-info/action.yml

+ 2 - 2
.github/actions/kernel-info/action.yml

@@ -12,8 +12,8 @@ runs:
           
           echo "Searching for ${TARGET_FILE} on branch: ${{ matrix.branch }}..."
           
-          # 1. Use git ls-tree to find the exact file path on the remote branch without cloning
-          FILE_PATH=$(git ls-tree -r --name-only "https://github.com/WildKernels/Samsung_Kernels" "$BRANCH" | grep "/${TARGET_FILE}$\|^${TARGET_FILE}$" | head -n 1)
+          # 1. Use git ls-remote to find the exact file path on the remote branch without cloning
+          FILE_PATH=$(git ls-remote -r --name-only "https://github.com/WildKernels/Samsung_Kernels" "$BRANCH" | grep "/${TARGET_FILE}$\|^${TARGET_FILE}$" | head -n 1)
           
           if [ -z "$FILE_PATH" ]; then
             echo "::error::Could not find ${TARGET_FILE} anywhere on branch $BRANCH"