зеркало из
https://github.com/KokaKiwi/BarInsta
синхронизирован 2025-12-12 23:16:31 +00:00
Improve notification message
Этот коммит содержится в:
родитель
a4fb746d14
коммит
f591f1c15d
1 изменённых файлов: 13 добавлений и 3 удалений
16
.github/workflows/github_pre_release.yml
предоставленный
16
.github/workflows/github_pre_release.yml
предоставленный
|
|
@ -48,11 +48,21 @@ jobs:
|
||||||
name: barinsta_pre-release_${{ steps.date.outputs.date }}
|
name: barinsta_pre-release_${{ steps.date.outputs.date }}
|
||||||
path: ${{steps.sign_app.outputs.signedReleaseFile}}
|
path: ${{steps.sign_app.outputs.signedReleaseFile}}
|
||||||
|
|
||||||
# Send Telegram notification
|
# Send success notification
|
||||||
- name: Send Telegram notification
|
- name: Send success Telegram notification
|
||||||
|
if: ${{ success() }}
|
||||||
uses: appleboy/telegram-action@master
|
uses: appleboy/telegram-action@master
|
||||||
with:
|
with:
|
||||||
to: ${{ secrets.TELEGRAM_BUILDS_CHANNEL_TO }}
|
to: ${{ secrets.TELEGRAM_BUILDS_CHANNEL_TO }}
|
||||||
token: ${{ secrets.TELEGRAM_BUILDS_BOT_TOKEN }}
|
token: ${{ secrets.TELEGRAM_BUILDS_BOT_TOKEN }}
|
||||||
message: Build successful
|
message: "${{ github.workflow }} ${{ github.job }} #${{ github.run_number }} completed successfully.\nURL: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}"
|
||||||
document: ${{steps.sign_app.outputs.signedReleaseFile}}
|
document: ${{steps.sign_app.outputs.signedReleaseFile}}
|
||||||
|
|
||||||
|
# Send failure notification
|
||||||
|
- name: Send failure Telegram notification
|
||||||
|
if: ${{ failure() }}
|
||||||
|
uses: appleboy/telegram-action@master
|
||||||
|
with:
|
||||||
|
to: ${{ secrets.TELEGRAM_BUILDS_CHANNEL_TO }}
|
||||||
|
token: ${{ secrets.TELEGRAM_BUILDS_BOT_TOKEN }}
|
||||||
|
message: "${{ github.workflow }} ${{ github.job }} #${{ github.run_number }} failed.\nURL: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}"
|
||||||
|
|
|
||||||
Загрузка…
Создание таблицы
Сослаться в новой задаче