Workflow Functions #2059
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Workflow Functions" | |
on: | |
workflow_dispatch: | |
inputs: | |
stateId: | |
description: "State Id" | |
eventName: | |
description: "Event Name" | |
eventPayload: | |
description: "Event Payload" | |
settings: | |
description: "Settings" | |
authToken: | |
description: "Auth Token" | |
ref: | |
description: "Ref" | |
signature: | |
description: "Signature to identify the Kernel" | |
command: | |
description: "Command" | |
jobs: | |
compute: | |
name: "Kernel-Telegram" | |
runs-on: ubuntu-latest | |
permissions: write-all | |
env: | |
TELEGRAM_BOT_ENV: ${{ secrets.TELEGRAM_BOT_ENV }} | |
APP_ID: ${{ secrets.APP_ID }} | |
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} | |
steps: | |
- uses: actions/checkout@v4 | |
- run: ${{ toJSON(inputs) }} | |
shell: cat {0} | |
- name: execute directive | |
uses: ./ | |
env: | |
TELEGRAM_BOT_ENV: ${{ secrets.TELEGRAM_BOT_ENV }} | |
APP_ID: ${{ secrets.APP_ID }} | |
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} |