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 }}) \