Skip to content

Commit 280674d

Browse files
committed
ci(build): simplify artifact naming logic in workflow
Remove conditional sublevel check and directly use ACTUAL_SUBLEVEL variable for cleaner artifact naming
1 parent 691726f commit 280674d

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -484,13 +484,7 @@ jobs:
484484
485485
- name: Set file name
486486
run: |
487-
# Set artifact name base for consistent naming
488-
# Prepare sublevel for naming
489-
SUBLEVEL_FOR_NAME="${{ inputs.sub_level }}"
490-
if [ -n "$ACTUAL_SUBLEVEL" ]; then
491-
SUBLEVEL_FOR_NAME="$ACTUAL_SUBLEVEL"
492-
fi
493-
ARTIFACT_BASE="${{ inputs.kernel_version }}.${SUBLEVEL_FOR_NAME}-${{ inputs.android_version }}-${{ inputs.os_patch_level }}-${{ matrix.apply_bypass == 'bypass' && 'Bypass' || 'Normal' }}"
487+
ARTIFACT_BASE="${{ inputs.kernel_version }}.$ACTUAL_SUBLEVEL-${{ inputs.android_version }}-${{ inputs.os_patch_level }}-${{ matrix.apply_bypass == 'bypass' && 'Bypass' || 'Normal' }}"
494488
echo "ARTIFACT_BASE=$ARTIFACT_BASE" >> $GITHUB_ENV
495489
echo "FILE_NAME=$ARTIFACT_BASE" >> $GITHUB_ENV
496490

0 commit comments

Comments
 (0)