Skip to content
This repository was archived by the owner on Nov 4, 2024. It is now read-only.

Commit ca6418f

Browse files
committed
add GITHUB_WORKSPACE as a safe directory
1 parent 48bfdd8 commit ca6418f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

gh-action-entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ set -e
33

44
export PRE_RELEASE="$INPUT_PRE_RELEASE"
55

6+
if [ -n ${GITHUB_WORKSPACE} ]; then
7+
git config --global --add safe.directory "$GITHUB_WORKSPACE"
8+
fi
9+
610
if [ -n "${INPUT_DOCKER_IMAGE}" ]; then
711
version=$(/app/sver tags -s "${INPUT_DOCKER_REGISTRY}" -u "${INPUT_DOCKER_USERNAME}" -p "${INPUT_DOCKER_PASSWORD}" "${INPUT_DOCKER_IMAGE}")
812
elif [ -n "${INPUT_NEXT}" ]; then

0 commit comments

Comments
 (0)