diff --git a/Dockerfile b/Dockerfile index 0e4a0b3..737c0da 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,5 @@ FROM appleboy/drone-telegram:1.4.2-linux-amd64 -# Github labels -LABEL "com.github.actions.name"="Telegram Notify" -LABEL "com.github.actions.description"="Sending a Telegram message" -LABEL "com.github.actions.icon"="message-square" -LABEL "com.github.actions.color"="blue" - -LABEL "repository"="https://github.com/appleboy/telegram-action" -LABEL "homepage"="https://github.com/appleboy" -LABEL "maintainer"="Bo-Yi Wu " -LABEL "version"="0.0.2" - ADD entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"] diff --git a/README.md b/README.md index 92697ee..a2e45e6 100644 --- a/README.md +++ b/README.md @@ -35,16 +35,16 @@ action "Send Default Message" { ## Environment variables -* PHOTO - Optional. photo message -* DOCUMENT - Optional. document message -* STICKER - Optional. sticker message -* AUDIO - Optional. audio message -* VOICE - Optional. voice message -* LOCATION - Optional. location message -* VENUE - Optional. venue message -* VIDEO - Optional. video message -* DEBUG - Optional. enable debug mode -* FORMAT - Optional. `markdown` or `html` +* photo - optional. photo message +* document - optional. document message +* sticker - optional. sticker message +* audio - optional. audio message +* voice - optional. voice message +* location - optional. location message +* venue - optional. venue message +* video - optional. video message +* debug - optional. enable debug mode +* format - optional. `markdown` or `html` ### Example diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..63ce82d --- /dev/null +++ b/action.yml @@ -0,0 +1,31 @@ +name: 'Telegram Message Notify' +description: 'Sending a Telegram message' +author: 'Bo-Yi Wu' +inputs: + photo: + description: 'send the photo message.' + document: + description: 'send the document message.' + sticker: + description: 'send the sticker message.' + audio: + description: 'send the audio message.' + voice: + description: 'send the voice message.' + location: + description: 'send the location message.' + venue: + description: 'send the venue message.' + video: + description: 'send the video message.' + debug: + description: 'enable debug mode.' + format: + description: 'message format: markdown or html' +runs: + using: 'docker' + image: 'Dockerfile' + +branding: + icon: 'message-square' + color: 'blue'