Actualiser action.yaml
This commit is contained in:
16
action.yaml
16
action.yaml
@@ -3,17 +3,17 @@ description: 'Description de l action'
|
||||
author: 'Eric Coissac'
|
||||
|
||||
inputs:
|
||||
server:
|
||||
check_server:
|
||||
description: 'Address of the Healthchecks server'
|
||||
required: true
|
||||
uuid:
|
||||
check_uuid:
|
||||
description: 'Deuxième paramètre'
|
||||
required: true
|
||||
command:
|
||||
check_command:
|
||||
description: 'Command to sen to the server can be nothing, start, log or fail'
|
||||
required: false
|
||||
default: 'stop'
|
||||
message:
|
||||
check_message:
|
||||
description: 'Message to log with the ping'
|
||||
required: false
|
||||
default: ''
|
||||
@@ -43,11 +43,11 @@ runs:
|
||||
|
||||
check_command curl
|
||||
|
||||
SERVER="${{ inputs.server }}"
|
||||
HEALTHPOINT="${{ inputs.server }}/ping/${{ inputs.uuid }}"
|
||||
SERVER="${{ inputs.check_server }}"
|
||||
HEALTHPOINT="${{ inputs.check_server }}/ping/${{ inputs.check_uuid }}"
|
||||
OPTIONS="-fsS -m 10 --retry 5"
|
||||
MESSAGE="${{ inputs.message }}"
|
||||
COMMAND="${{ inputs.command }}"
|
||||
MESSAGE="${{ inputs.check_message }}"
|
||||
COMMAND="${{ inputs.check_command }}"
|
||||
|
||||
CURL_DATA=()
|
||||
if [[ -n "$MESSAGE" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user