33 lines
782 B
YAML
33 lines
782 B
YAML
name: 'Gitea Actions Telegram notification'
|
|
description: 'Get notification to Telegram chat about Gitea Action workflow status '
|
|
author: 'gcg'
|
|
|
|
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:
|
|
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 }}
|
|
RUN_NUMBER: ${{ github.run_number }}
|
|
|
|
branding:
|
|
icon: 'send'
|
|
color: 'blue' |