Преглед изворни кода

fix: update apply-kernel-branding action to include CONFIG_FRAGMENT creation and adjust conditions

TheWildJames пре 3 месеци
родитељ
комит
1c179e5e2f
1 измењених фајлова са 7 додато и 0 уклоњено
  1. 7 0
      .github/actions/apply-kernel-branding/action.yml

+ 7 - 0
.github/actions/apply-kernel-branding/action.yml

@@ -22,6 +22,7 @@ runs:
   steps:
     - name: Apply Kernel Name Branding
       shell: bash
+      if: false
       working-directory: ${{ github.workspace }}/kernel/common
       run: |
         CONFIG_FRAGMENT="${{ github.workspace }}/wild_gki.fragment"
@@ -54,7 +55,13 @@ runs:
 
     - name: Apply Kernel Configuration
       shell: bash
+      working-directory: ${{ github.workspace }}/kernel/common
       run: |
+        CONFIG_FRAGMENT="${{ github.workspace }}/wild_gki.fragment"
+        touch "$CONFIG_FRAGMENT"
+
+        DEFCONFIG="${{ github.workspace }}/kernel/common/arch/arm64/configs/gki_defconfig"
+        
         if grep -q '^CONFIG_LOCALVERSION=' "$DEFCONFIG"; then
           LOCALVERSION_VALUE="$(grep -m1 '^CONFIG_LOCALVERSION=' "$DEFCONFIG" | sed -E 's/^CONFIG_LOCALVERSION="?([^"]*)"?$/\1/')"
           echo "CONFIG_LOCALVERSION=\"${LOCALVERSION_VALUE}-Wild\"" >> "$CONFIG_FRAGMENT"