Bläddra i källkod

Fix AnyKernel3 prep inputs

TheWildJames 4 månader sedan
förälder
incheckning
fb61cb2f6c
2 ändrade filer med 14 tillägg och 0 borttagningar
  1. 11 0
      .github/actions/prepare-anykernel3/action.yml
  2. 3 0
      .github/workflows/build.yml

+ 11 - 0
.github/actions/prepare-anykernel3/action.yml

@@ -1,6 +1,14 @@
 name: 'Prepare AnyKernel3'
 description: 'Copies built Image into AnyKernel3 folder'
 
+inputs:
+  android_version:
+    description: 'Android version (e.g., android13)'
+    required: true
+  kernel_version:
+    description: 'Kernel version (e.g., 5.15)'
+    required: true
+
 runs:
   using: composite
   steps:
@@ -8,6 +16,9 @@ runs:
       run: |
         set -euo pipefail
 
+        ANDROID_VERSION="${{ inputs.android_version }}"
+        KERNEL_VERSION="${{ inputs.kernel_version }}"
+
         if [ -f "${{ github.workspace }}/kernel/out/$ANDROID_VERSION-$KERNEL_VERSION/dist/Image" ]; then
           cp "${{ github.workspace }}/kernel/out/$ANDROID_VERSION-$KERNEL_VERSION/dist/Image" "${{ github.workspace }}/AnyKernel3/Image"
           exit 0

+ 3 - 0
.github/workflows/build.yml

@@ -303,6 +303,9 @@ jobs:
 
     - name: Prepare AnyKernel3 Zip
       uses: ./.github/actions/prepare-anykernel3
+      with:
+        android_version: ${{ inputs.android_version }}
+        kernel_version: ${{ inputs.kernel_version }}
 
     - name: Upload Artifacts
       uses: actions/upload-artifact@v7