Compare commits
2 Commits
6dde2b917a
...
db88d660cf
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
db88d660cf | ||
|
|
d185edb3fc |
@@ -1,7 +1,7 @@
|
||||
name: 'Hello World'
|
||||
description: 'Greet someone'
|
||||
inputs:
|
||||
text:
|
||||
message:
|
||||
description: "Text"
|
||||
required: false
|
||||
default: ""
|
||||
@@ -62,7 +62,7 @@ runs:
|
||||
GITHUB_ACTION_PATH: ${{ github.action_path }}
|
||||
|
||||
- name: Send message
|
||||
run: sendMessage ${{ inputs.bot_token }} ${{ inputs.chat_id }} ${{ inputs.text }}
|
||||
run: sendMessage ${{ inputs.bot_token }} ${{ inputs.chat_id }} ${{ inputs.message }}
|
||||
shell: bash
|
||||
|
||||
- name: Run goodbye.sh
|
||||
|
||||
@@ -6,7 +6,7 @@ echo token=$1
|
||||
echo chat_id=$2
|
||||
echo text=$3
|
||||
|
||||
response=$(curl -s -X POST "https://api.telegram.org/bot$1/sendMessage" \
|
||||
response=$(curl -s -X -v POST "https://api.telegram.org/bot$1/sendMessage" \
|
||||
-d "chat_id=$2" \
|
||||
-d "parse_mode=MarkdownV2" \
|
||||
-d "link_preview_options={\"is_disabled\":true}" \
|
||||
|
||||
Reference in New Issue
Block a user