add inline keyboard button
This commit is contained in:
10
action.yml
10
action.yml
@@ -11,6 +11,14 @@ inputs:
|
||||
default: |
|
||||
<a href='${{ github.event.repository.html_url }}/actions/runs/${{ github.run_number }}'>%23${{ github.run_number }}</a> <b>${{ github.event.repository.name }}</b>: ${{ github.workflow }}
|
||||
\nrunner: <a href='${{ github.server_url }}/-/admin/actions/runners'>${{ env.GITEA_RUNNER_NAME }}</a>
|
||||
button_url:
|
||||
description: "Button URL"
|
||||
required: false
|
||||
default: ''
|
||||
button_title:
|
||||
description: "Button title"
|
||||
required: false
|
||||
default: ''
|
||||
message_id:
|
||||
description: "Message ID"
|
||||
required: false
|
||||
@@ -74,7 +82,7 @@ runs:
|
||||
CAPTION="$STATUS${{ inputs.caption }}"
|
||||
echo $CAPTION
|
||||
echo "$CAPTION${{ inputs.message }}"
|
||||
sendMessage "${{ inputs.bot_token }}" ${{ inputs.chat_id }} "$CAPTION${{ inputs.message }}"
|
||||
sendMessage "${{ inputs.bot_token }}" ${{ inputs.chat_id }} "$CAPTION${{ inputs.message }}" "${{ inputs.button_title }}" "${{ inputs.button_url }}"
|
||||
shell: bash
|
||||
|
||||
- name: Delete message
|
||||
|
||||
Reference in New Issue
Block a user