mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-25 03:48:37 +09:00
38 lines
1.0 KiB
YAML
38 lines
1.0 KiB
YAML
name: Telegram Upload
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
workflow_call:
|
|
secrets:
|
|
TELEGRAM_API_ID:
|
|
required: true
|
|
TELEGRAM_API_HASH:
|
|
required: true
|
|
TELEGRAM_BOT_TOKEN:
|
|
required: true
|
|
TELEGRAM_CHAT_ID:
|
|
required: true
|
|
STICKER_ID:
|
|
required: true
|
|
CHANGELOG_GITHUB_REPOSITORY:
|
|
required: false
|
|
|
|
jobs:
|
|
tg-upload:
|
|
name: Telegram Upload
|
|
timeout-minutes: 5
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Upload to Telegram
|
|
if: ${{ env.HAVE_TELEGRAM_API_ID == 'true' }}
|
|
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.STICKER_ID }}
|
|
CHANGELOG_GITHUB_REPOSITORY: ${{ secrets.CHANGELOG_GITHUB_REPOSITORY }}
|
|
env:
|
|
HAVE_TELEGRAM_API_ID: ${{ secrets.TELEGRAM_API_ID != '' }}
|