Skip to content

Instantly share code, notes, and snippets.

@xinthink
Last active November 7, 2019 03:03
Show Gist options
  • Save xinthink/e235da5f921a57670d5950e6023e29b8 to your computer and use it in GitHub Desktop.
Save xinthink/e235da5f921a57670d5950e6023e29b8 to your computer and use it in GitHub Desktop.
medium-custom-github-actions action.yml
name: 'Telegram Action'
description: 'Telegram notification for workflow set up with GitHub Actions'
author: <name>
inputs:
botToken:
description: 'The Telegram Bot token'
required: true
chatId:
description: 'The target to which the message will be sent, can be a Telegram Channel or Group'
required: true
jobStatus:
description: "The current status of the job: job.status, defaults to 'success'"
default: 'success'
skipSuccess:
description: "Only non-success notifications will be sent if true, include success notifications otherwise, defaults to 'true'"
default: 'true'
runs:
using: 'node12'
main: 'lib/main.js'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment