@@ -104,6 +104,11 @@ jobs:
104104 apk_path : ${{ steps.find_apk.outputs.APK_PATH }}
105105 mapping_path : ${{ steps.normal_mapping.outputs.MAPPING_PATH }}
106106 steps :
107+ - name : Parse input
108+ run : |
109+ BUILD_TYPE_CASED=$(echo "${{ inputs.buildType }}" | sed 's/^\(.\)/\L\1/')
110+ echo "BUILD_TYPE_CASED=$BUILD_TYPE_CASED" >> $GITHUB_ENV
111+
107112 - name : Checkout
108113 uses : actions/checkout@v4.2.2
109114
@@ -123,18 +128,18 @@ jobs:
123128 if : success() && github.ref == 'refs/heads/master'
124129 id : release-name
125130 run : |
126- name=`ls app/build/outputs/apk/${{ inputs.buildType }}/*.apk | awk -F '(/|.apk)' '{print $6}'` && echo "name=${name}" >> $GITHUB_OUTPUT
131+ name=`ls app/build/outputs/apk/${{ env.BUILD_TYPE_CASED }}/*.apk | awk -F '(/|.apk)' '{print $6}'` && echo "name=${name}" >> $GITHUB_OUTPUT
127132
128133 - name : Find APK
129134 id : find_apk
130135 run : |
131- APK_PATH=$(find app/build/outputs/apk/${{ inputs.buildType }} -name "*.apk" | head -n 1)
136+ APK_PATH=$(find app/build/outputs/apk/${{ env.BUILD_TYPE_CASED }} -name "*.apk" | head -n 1)
132137 echo "APK_PATH=$APK_PATH" >> $GITHUB_OUTPUT
133138
134139 - name : Find mapping file
135140 id : normal_mapping
136141 run : |
137- MAPPING_PATH=$(find app/build/outputs/mapping/${{ inputs.buildType }} -name "mapping.txt" | head -n 1)
142+ MAPPING_PATH=$(find app/build/outputs/mapping/${{ env.BUILD_TYPE_CASED }} -name "mapping.txt" | head -n 1)
138143 echo "MAPPING_PATH=$MAPPING_PATH" >> $GITHUB_OUTPUT
139144
140145 - name : Upload normal mapping as artifact
@@ -148,7 +153,7 @@ jobs:
148153 uses : actions/upload-artifact@v4.6.2
149154 with :
150155 name : ${{ steps.release-name.outputs.name }}
151- path : app/build/outputs/apk/${{ inputs.buildType }}/*.apk
156+ path : app/build/outputs/apk/${{ env.BUILD_TYPE_CASED }}/*.apk
152157
153158 release :
154159 name : Release on Telegram or GitHub
0 commit comments