From 2bd54da9515f8f5dc1ecb3faf408f74e82816835 Mon Sep 17 00:00:00 2001 From: Joonas Onatsu Date: Mon, 11 Nov 2024 17:59:33 +0200 Subject: [PATCH] fix script --- .github/actions/build-version/entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/actions/build-version/entrypoint.sh b/.github/actions/build-version/entrypoint.sh index 0827d2a..878d142 100755 --- a/.github/actions/build-version/entrypoint.sh +++ b/.github/actions/build-version/entrypoint.sh @@ -18,6 +18,10 @@ if [[ "${GITHUB_EVENT_NAME}" == "release" ]] && [[ "${GITHUB_REF_TYPE}" != "tag" fi echo "::endgroup::" +echo "::group::Add $GITHUB_WORKSPACE/.git as safe directory" +git config --global --add safe.directory $GITHUB_WORKSPACE/.git +echo "::endgroup::" + echo "::group::Parse version" # Default to version based on GITHUB_SHA