From 0ca15db092a1e7fb2c2e0433256c6bb8ee9088ab Mon Sep 17 00:00:00 2001 From: shreya-mishra Date: Mon, 16 Oct 2023 12:29:50 +0530 Subject: [PATCH] notify release builds on discord --- .github/workflows/pipeline.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 2ddd7dc7..6cf26e41 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -63,4 +63,11 @@ jobs: appId: ${{secrets.FIREBASE_APP_ID}} serviceCredentialsFileContent: ${{ secrets.CREDENTIAL_FILE_CONTENT }} groups: ${{secrets.GROUPS}} - file: android/app/build/outputs/apk/debug/app-debug.apk \ No newline at end of file + file: android/app/build/outputs/apk/debug/app-debug.apk + + - name: send build updates + - env: + DISCORD_BOT_TOKEN: ${{ secrets.DISCORD_BOT_TOKEN }} + - run: | + JSON_DATA= '{"content": "new version is out"}' + curl -X POST -H "Authorization: Bot MTEyMjExMDc1NjMxMDI0MTM0MA.GzqzNA.-pytnKpYG7UTOyROUNC1bRX2zYtMjbGSfRLfjY" -H "Content-Type: application/json " -d "$JSON_DATA" https://discord.com/api/v10/channels/1122146463741386774/messages