From 9facbf8f49be521b11c2070374477cd7bbc57b82 Mon Sep 17 00:00:00 2001 From: Patryk Michalik Date: Tue, 16 Mar 2021 11:17:28 +0100 Subject: [PATCH] Move notification delivery to separate Job; use `download-artifact` --- .github/workflows/build_debug_apk.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_debug_apk.yml b/.github/workflows/build_debug_apk.yml index 8d342c6d44..f04c632b6a 100644 --- a/.github/workflows/build_debug_apk.yml +++ b/.github/workflows/build_debug_apk.yml @@ -34,15 +34,23 @@ jobs: - name: Upload artifact uses: actions/upload-artifact@v2 with: - name: Lawnchair + name: Debug APK path: build/outputs/apk/lawnWithQuickstep/debug/**.apk - - name: Save Workflow status as environment variable - uses: technote-space/workflow-conclusion-action@v2.1.5 + send-notification: + runs-on: ubuntu-latest + needs: build-debug-apk + steps: + - name: Download artifact + uses: actions/download-artifact@v2 + with: + name: Debug APK + path: artifacts/debug-apk + - uses: technote-space/workflow-conclusion-action@v2.1.5 - name: Send notification uses: appleboy/telegram-action@v0.1.0 with: to: ${{ secrets.TELEGRAM_CI_CHANNEL_ID }} token: ${{ secrets.TELEGRAM_CI_BOT_TOKEN }} - document: build/outputs/apk/lawnWithQuickstep/debug/**.apk + document: artifacts/debug-apk/**.apk args: | Build ${{ github.run_id }} finished with status ‘${{ env.WORKFLOW_CONCLUSION }}’. \ No newline at end of file