-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (40 loc) · 1.23 KB
/
telegram-uploader.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Telegram Uploader (GitHub releases)
on:
workflow_call:
secrets:
TELEGRAM_API_ID:
required: true
TELEGRAM_API_HASH:
required: true
TELEGRAM_BOT_TOKEN:
required: true
TELEGRAM_CHAT_ID:
required: true
TELEGRAM_STICKER_ID:
required: false
CHANGELOG_GITHUB_REPOSITORY:
required: false
DOWNLOAD_GITHUB_REPOSITORY:
required: false
ASSETS_PATTERN:
required: false
MESSAGE:
required: false
jobs:
tg-upload:
name: Telegram Upload
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- name: Upload to Telegram
uses: nikhilbadyal/ghaction-telegram-uploader@main
with:
API_ID: ${{ secrets.TELEGRAM_API_ID }}
API_HASH: ${{ secrets.TELEGRAM_API_HASH }}
BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
STICKER_ID: ${{ secrets.TELEGRAM_STICKER_ID }}
CHANGELOG_GITHUB_REPOSITORY: ${{ secrets.CHANGELOG_GITHUB_REPOSITORY }}
DOWNLOAD_GITHUB_REPOSITORY: ${{ secrets.DOWNLOAD_GITHUB_REPOSITORY }}
ASSETS_PATTERN: ${{ secrets.ASSETS_PATTERN }}
MESSAGE: ${{ secrets.MESSAGE }}