commit d98b6fc6a4b1f8ec5d5379beeb94420fbcee5854 parent daed1e14a5280f584dab214fe42cd85aeb15316e Author: auth <64337177+authorisation@users.noreply.github.com> Date: Wed, 28 Jun 2023 19:22:10 +0000 ci: add branch name Diffstat:
M | .github/workflows/android.yml | | | 5 | +++-- |
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml @@ -43,11 +43,12 @@ jobs: - name: Generate Version run: ./gradlew getVersion - - name: Set Version to Environment + - name: Set Environment Variables id: version-env run: | echo "version=$(cat app/build/version.txt)" >> $GITHUB_ENV echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT + echo "branch_name=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV - name: Rename APK files run: | @@ -67,7 +68,7 @@ jobs: path: app/build/outputs/apk/armv7/debug/*.apk - name: CI Upload armv8 - run: node ./.github/workflows/upload.js -t "${{ secrets.TELEGRAM_BOT_TOKEN }}" -f "app/build/outputs/apk/armv8/debug/app-${{ env.version }}-armv8-${{ steps.version-env.outputs.sha_short }}.apk" --caption "A new commit has been pushed! ${{ steps.version-env.outputs.sha_short }}" --chatid "${{ secrets.TELEGRAM_CHAT_ID }}" + run: node ./.github/workflows/upload.js -t "${{ secrets.TELEGRAM_BOT_TOKEN }}" -f "app/build/outputs/apk/armv8/debug/app-${{ env.version }}-armv8-${{ steps.version-env.outputs.sha_short }}.apk" --caption "A new commit has been pushed to the ${{ steps.version-env.outputs.branch_name }} branch! ${{ steps.version-env.outputs.sha_short }}" --chatid "${{ secrets.TELEGRAM_CHAT_ID }}" - name: CI Upload armv7 run: node ./.github/workflows/upload.js -t "${{ secrets.TELEGRAM_BOT_TOKEN }}" -f "app/build/outputs/apk/armv7/debug/app-${{ env.version }}-armv7-${{ steps.version-env.outputs.sha_short }}.apk" --chatid "${{ secrets.TELEGRAM_CHAT_ID }}"