Skip to content

Commit

Permalink
Merge pull request #135 from pbhandari356/pbhandari-fix-git-error
Browse files Browse the repository at this point in the history
fix: git error introduced in git 2.35.2
  • Loading branch information
shogo82148 authored Apr 19, 2022
2 parents 63c3999 + 5690438 commit 6b7fbc1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion script.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/bin/sh

cd "${GITHUB_WORKSPACE}/${INPUT_WORKDIR}" || exit 1
if [ -n "${GITHUB_WORKSPACE}" ] ; then
cd "${GITHUB_WORKSPACE}/${INPUT_WORKDIR}" || exit 1
git config --global --add safe.directory "${GITHUB_WORKSPACE}" || exit 1
fi

TEMP_PATH="$(mktemp -d)"
PATH="${TEMP_PATH}:$PATH"
Expand Down

0 comments on commit 6b7fbc1

Please sign in to comment.