From 1e47b53719c5864d8c40c6f3bd4bfa483bcc8e8a Mon Sep 17 00:00:00 2001 From: Eric Coissac Date: Mon, 14 Apr 2025 09:07:29 +0200 Subject: [PATCH] Actualiser action.yaml --- action.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/action.yaml b/action.yaml index 219e085..76168f8 100644 --- a/action.yaml +++ b/action.yaml @@ -29,9 +29,14 @@ runs: GREEN='\033[0;32m' RED='\033[0;31m' NC='\033[0m' # No Color + if [[ -z $(which ${{ inputs.registry_command }}) ]] ; then echo -e "${RED}❌ Error:${NC}: Cannot locate the ${{ inputs.registry_command }} command" + exit 1 + fi + echo "${{ inputs.registry_command }} connection to registry: ${{ inputs.registry_server }}..." + result=$(${{ inputs.registry_command }} login ${{ inputs.registry_server }} \ -u ${{ inputs.registry_user }} \ -p ${{ inputs.registry_password }}) \