Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Edit transaction time fixes (part 1) (#3446) #1895

Edit transaction time fixes (part 1) (#3446)

Edit transaction time fixes (part 1) (#3446) #1895

Workflow file for this run

name: APK
on:
push:
branches:
- main
pull_request:
jobs:
assemble_demo_apk:
runs-on: ubuntu-latest
steps:
- name: Checkout GIT
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '18'
- name: Gradle cache
uses: gradle/actions/setup-gradle@v4
- name: Build Demo APK
run: ./gradlew assembleDemo
- name: Upload APK to Github Actions
uses: actions/upload-artifact@v4
with:
name: Ivy-Wallet-Demo.apk
path: app/build/outputs/apk/demo/app-demo.apk
- name: Upload APK in Telegram Group
if: |
github.ref == 'refs/heads/main'
run: |
COMMIT_LINK="https://github.com/${GITHUB_REPOSITORY}/commit/${GITHUB_SHA}"
COMMIT_MESSAGE=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" "https://api.github.com/repos/${GITHUB_REPOSITORY}/commits/${GITHUB_SHA}" | jq -r .commit.message | cut -c 1-100)
CAPTION=$'Ivy Wallet Demo APK:\n\n'"$COMMIT_MESSAGE"$'\n... see commit at: '"$COMMIT_LINK"
curl -F "chat_id=-1001647280565" \
-F "document=@app/build/outputs/apk/demo/app-demo.apk" \
-F "reply_to_message_id=16118" \
-F "caption=$CAPTION" \
https://api.telegram.org/bot${{ secrets.BOTFATHER_TELEGRAM_BOT_TOKEN }}/sendDocument