From 014f79a522f34920e6d9b96efaf8cbe954788a03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Fabianski?= Date: Fri, 24 Nov 2023 15:33:15 +0100 Subject: [PATCH] chore: ensure git is installed as a dependency --- action.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/action.yml b/action.yml index f8acff7..514d135 100644 --- a/action.yml +++ b/action.yml @@ -82,6 +82,15 @@ outputs: runs: using: "composite" steps: + - id: check_git_installed + shell: bash + run: | + if git --version &> /dev/null; then + echo "Git is installed. Version: $(git --version)" + else + echo "Git is not installed on this system." + exit 1 + fi - shell: bash run: | VERSION="${{ inputs.version }}"