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

Commit

Permalink
Limit the "APK" workflow to prod and include the commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
ILIYANGERMANOV committed Aug 25, 2023
1 parent 039844b commit 7161c64
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 134 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/apk.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: APK

on: push
on:
push:
branches:
- prod

jobs:
assemble_demo_apk:
Expand Down Expand Up @@ -37,11 +40,11 @@ jobs:
- name: Upload APK in Telegram Group
run: |
COMMIT_LINK="https://github.com/${GITHUB_REPOSITORY}/commit/${GITHUB_SHA}"
CAPTION="Ivy Wallet Demo APK built from commit: $COMMIT_LINK"
COMMIT_MESSAGE=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" "https://api.github.com/repos/${GITHUB_REPOSITORY}/commits/${GITHUB_SHA}" | jq -r .commit.message)
CAPTION="Ivy Wallet Demo APK built from \"$COMMIT_MESSAGE\" commit: $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
50 changes: 0 additions & 50 deletions .github/workflows/build_prod_debug.yml

This file was deleted.

81 changes: 0 additions & 81 deletions .github/workflows/ui_tests.yml

This file was deleted.

0 comments on commit 7161c64

Please sign in to comment.