Move notification delivery to separate Job; use download-artifact

This commit is contained in:
Patryk Michalik
2021-03-16 11:17:28 +01:00
parent b0834f784e
commit 9facbf8f49

View File

@@ -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 }}.