1
0
telegram-action/action.yaml

33 lines
782 B
YAML
Raw Permalink Normal View History

2023-10-21 13:12:47 +02:00
name: 'Gitea Actions Telegram notification'
description: 'Get notification to Telegram chat about Gitea Action workflow status '
author: 'gcg'
2022-04-22 16:28:20 +02:00
inputs:
chat_id:
description: 'Telegram chat id'
required: true
token:
description: 'Token for Telegram bot'
required: true
status:
description: 'Job status'
required: false
default: ${{ job.status }}
runs:
2022-11-23 19:29:10 +01:00
using: 'composite'
steps:
- shell: bash
run: python3 ${{ github.action_path }}/main.py
env:
CHAT_ID: ${{ inputs.chat_id }}
TOKEN: ${{ inputs.token }}
STATUS: ${{ inputs.status }}
WORKFLOW: ${{ github.workflow }}
REPOSITORY: ${{ github.repository }}
2023-10-21 13:12:47 +02:00
RUN_NUMBER: ${{ github.run_number }}
2022-04-22 16:44:26 +02:00
branding:
icon: 'send'
color: 'blue'