diff options
author | Harsh Shandilya <msfjarvis@gmail.com> | 2020-02-25 15:22:05 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-25 15:22:05 +0530 |
commit | bea3cd5457e331f04a9aeb5c99267f14908f5eaa (patch) | |
tree | ce86f35a1d5de1fc0e1d81f7945d47af256a59ac /release | |
parent | 97ee48dd2527762b299c2460478afd9d22824a0d (diff) |
CI workflow improvements (#642)
* github: Only run debug tasks in PRs
* github: Remove nightly deploys
* github: Setup automatic debug branch deployment
* Tweak Gradle config in CI
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Co-authored-by: Aditya Wasan <adityawasan55@gmail.com>
Diffstat (limited to 'release')
-rwxr-xr-x | release/deploy-telegram.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/release/deploy-telegram.sh b/release/deploy-telegram.sh new file mode 100755 index 00000000..79ae9458 --- /dev/null +++ b/release/deploy-telegram.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +function send_to_tg() { + local FILE + local CHAT_ID + local CAPTION + FILE="${1}" + CHAT_ID="${2}" + CAPTION="${3}" + curl -F chat_id="${CHAT_ID}" -F document="@${FILE}" -F caption="${CAPTION}" -F parse_mode="Markdown" "https://api.telegram.org/bot${TG_TOKEN:?}/sendDocument" >/dev/null 2>&1 +} + +send_to_tg "${TG_FILE:?}" "${TG_TO:?}" "aps-${GITHUB_RUN_NUMBER}-debug" |