From b628ef88cfbb522b5cedf4fee1375198c52094b8 Mon Sep 17 00:00:00 2001 From: Eric Coissac Date: Mon, 14 Apr 2025 10:15:51 +0200 Subject: [PATCH] Actualiser action.yaml --- action.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/action.yaml b/action.yaml index 008b763..794bf71 100644 --- a/action.yaml +++ b/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