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