Actualiser action.yaml

This commit is contained in:
2025-04-14 10:15:51 +02:00
parent 96fc1f1d81
commit b628ef88cf

View File

@@ -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