Pārlūkot izejas kodu

ci(workflows): add artifact file name generation step

Add step to generate consistent artifact file names based on build parameters including kernel version, android version, and build type. This ensures standardized naming for build outputs.
TheWildJames 9 mēneši atpakaļ
vecāks
revīzija
bf92e2e994
1 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  1. 6 0
      .github/workflows/build.yml

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

@@ -173,6 +173,12 @@ jobs:
             fi
           fi
 
+      - name: Set file name
+        run: |
+          ARTIFACT_BASE="${{ inputs.kernel_version }}.$ACTUAL_SUBLEVEL-${{ inputs.android_version }}-${{ inputs.os_patch_level }}-${{ matrix.build_type == 'bypass' && 'Bypass' || matrix.build_type == 'vTomsonek' && 'vTomsonek' || matrix.build_type == 'TheWildJames' && 'TheWildJames' || 'Normal' }}"
+          echo "ARTIFACT_BASE=$ARTIFACT_BASE" >> $GITHUB_ENV
+          echo "FILE_NAME=$ARTIFACT_BASE" >> $GITHUB_ENV
+
       - name: Apply glibc 2.38 Compatibility Fix
         run: |
           # Use ACTUAL_SUBLEVEL for LTS builds, otherwise use the input sub_level