mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-25 03:48:37 +09:00
👷 Reusable workflow
This commit is contained in:
@@ -27,17 +27,10 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tg-upload:
|
tg-upload:
|
||||||
timeout-minutes: 10
|
uses: ./.github/workflows/telegram-uploader.yml
|
||||||
runs-on: ubuntu-latest
|
secrets:
|
||||||
steps:
|
TELEGRAM_API_ID: ${{ inputs.API_ID }}
|
||||||
- name: Upload to Telegram
|
TELEGRAM_API_HASH: ${{ inputs.API_HASH }}
|
||||||
if: ${{ env.HAVE_TELEGRAM_API_ID == 'true' }}
|
TELEGRAM_BOT_TOKEN: ${{ inputs.BOT_TOKEN }}
|
||||||
uses: nikhilbadyal/ghaction-telegram-uploader@main
|
TELEGRAM_CHAT_ID: ${{ inputs.CHAT_ID }}
|
||||||
with:
|
|
||||||
API_ID: ${{ inputs.API_ID }}
|
|
||||||
API_HASH: ${{ inputs.API_HASH }}
|
|
||||||
BOT_TOKEN: ${{ inputs.BOT_TOKEN }}
|
|
||||||
CHAT_ID: ${{ inputs.CHAT_ID }}
|
|
||||||
STICKER_ID: ${{ inputs.STICKER_ID }}
|
STICKER_ID: ${{ inputs.STICKER_ID }}
|
||||||
env:
|
|
||||||
HAVE_TELEGRAM_API_ID: ${{ inputs.API_ID != '' }}
|
|
||||||
|
|||||||
@@ -2,6 +2,18 @@ name: Telegram Upload
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
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
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tg-upload:
|
tg-upload:
|
||||||
|
|||||||
Reference in New Issue
Block a user