commit 34b5ba2b4631b3b221b95531801c860d558dcbde parent d98b6fc6a4b1f8ec5d5379beeb94420fbcee5854 Author: auth <64337177+authorisation@users.noreply.github.com> Date: Sun, 2 Jul 2023 15:02:29 +0000 fix(ci): branch name Diffstat:
M | .github/workflows/android.yml | | | 8 | +++++--- |
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml @@ -48,7 +48,10 @@ jobs: 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: Git branch name + id: git-branch-name + uses: EthanSK/git-branch-name-action@v1 - name: Rename APK files run: | @@ -68,8 +71,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 to the ${{ steps.version-env.outputs.branch_name }} branch! ${{ 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 ${{ env.GIT_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 }}" -