Compare commits
2 Commits
6dde2b917a
...
db88d660cf
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
db88d660cf | ||
|
|
d185edb3fc |
@@ -1,7 +1,7 @@
|
|||||||
name: 'Hello World'
|
name: 'Hello World'
|
||||||
description: 'Greet someone'
|
description: 'Greet someone'
|
||||||
inputs:
|
inputs:
|
||||||
text:
|
message:
|
||||||
description: "Text"
|
description: "Text"
|
||||||
required: false
|
required: false
|
||||||
default: ""
|
default: ""
|
||||||
@@ -62,7 +62,7 @@ runs:
|
|||||||
GITHUB_ACTION_PATH: ${{ github.action_path }}
|
GITHUB_ACTION_PATH: ${{ github.action_path }}
|
||||||
|
|
||||||
- name: Send message
|
- 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
|
shell: bash
|
||||||
|
|
||||||
- name: Run goodbye.sh
|
- name: Run goodbye.sh
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ echo token=$1
|
|||||||
echo chat_id=$2
|
echo chat_id=$2
|
||||||
echo text=$3
|
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 "chat_id=$2" \
|
||||||
-d "parse_mode=MarkdownV2" \
|
-d "parse_mode=MarkdownV2" \
|
||||||
-d "link_preview_options={\"is_disabled\":true}" \
|
-d "link_preview_options={\"is_disabled\":true}" \
|
||||||
|
|||||||
Reference in New Issue
Block a user