Browse Source

Refactor image copy logic in ak3zip-prep action

Updated conditions for copying kernel images based on branch inputs.
jimsterino98 2 tháng trước cách đây
mục cha
commit
39cb071f37
1 tập tin đã thay đổi với 5 bổ sung7 xóa
  1. 5 7
      .github/actions/ak3zip-prep/action.yml

+ 5 - 7
.github/actions/ak3zip-prep/action.yml

@@ -8,19 +8,17 @@ inputs:
 runs:
  using: composite
  steps:
-  - name: add kernel checking to script
-    shell: bash
-    run: |
-     cd "$ANYKERNEL3"
-
-     sed -i 's/do.check_boot_version=.*/do.check_boot_version=1/' anykernel.sh
      
   - name: copy image to ak3 folder depending on branch
     shell: bash
     run: |
      cd "$CONFIG"
 
-     if [[ -f ./kernel_platform/bazel-bin/common/kernel_aarch64/Image ]]; then
+     if [[ ${{ inputs.branch }} == SM-S928B* ]]; then
+      KERNEL_IMAGE=$(find kernel_platform/out -type f -path "*_kbuild_mixed_tree/Image" | head -n1)
+      echo "$KERNEL_IMAGE"
+      cp "$KERNEL_IMAGE" "$ANYKERNEL3/Image"
+     elif [[ -f ./kernel_platform/bazel-bin/common/kernel_aarch64/Image ]]; then
        cp ./kernel_platform/bazel-bin/common/kernel_aarch64/Image "$ANYKERNEL3/Image"
      elif [[ -f ./bazel-bin/kernel/kernel_aarch64/Image ]]; then
      cp ./bazel-bin/kernel/kernel_aarch64/Image "$ANYKERNEL3/Image"