From 23113678a0ddc42b37527d740bd32dae05ee50f9 Mon Sep 17 00:00:00 2001 From: Eric Coissac Date: Sun, 13 Apr 2025 23:44:53 +0200 Subject: [PATCH] Actualiser action.yaml --- action.yaml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/action.yaml b/action.yaml index eb406f1..207ea12 100644 --- a/action.yaml +++ b/action.yaml @@ -12,7 +12,7 @@ inputs: command: description: 'Command to sen to the server can be nothing, start, log or fail' required: false - default: '' + default: 'stop' message: description: 'Message to log with the ping' required: false @@ -29,13 +29,10 @@ runs: OPTIONS="-fsS -m 10 --retry 5" MESSAGE="${{ inputs.message }}" COMMAND="${{ input.command }}" - if [[ -n "$MESSAGE" ]] ; then MESSAGE="--data-raw \"${MESSAGE}\"" fi - case "$COMMAND" in - start | log | fail) URL="${HEALTHPOINT}/$COMMAND" ;; @@ -44,14 +41,11 @@ runs: URL="${HEALTHPOINT}" ;; esac - RUN="curl $OPTIONS $MESSAGE '$URL'" eval "$RUN" - if [[ "$COMMAND"=="fail" ]] ; then exit 1 fi - exit 0