1
0
telegram-action/action.yaml

53 lines
1.4 KiB
YAML
Raw Normal View History

2022-04-22 17:28:20 +03:00
name: 'GitHub workflow Telegram notification'
description: 'Get notification to Telegram chat about GitHub Action workflow status '
author: 'yamaks2306'
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 }}
commit_message:
description: 'Commit message'
required: false
default: ${{ github.event.head_commit.message }}
docker_tags:
description: 'For example, steps.docker_meta.outputs.tags'
required: false
include_commit_info:
description: "If true, include commit information to message. Default - true"
required: false
default: 'true'
message:
description: "Custom message"
required: false
runs:
2022-11-23 21:29:10 +03: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 }}
COMMIT_MESSAGE: ${{ inputs.commit_message }}
DOCKER_TAGS: ${{ inputs.docker_tags }}
INCLUDE_COMMIT_INFO: ${{ inputs.include_commit_info }}
MESSAGE: ${{ inputs.message }}
WORKFLOW: ${{ github.workflow }}
REPOSITORY: ${{ github.repository }}
SHA: ${{ github.sha }}
ACTOR: ${{ github.actor }}
TAG: ${{ github.ref }}
2022-04-22 17:44:26 +03:00
branding:
icon: 'send'
color: 'blue'