Skip to content

Commit

Permalink
Fix git safe directory error (#122)
Browse files Browse the repository at this point in the history
* fix: workaround to solve fatal: detected dubious ownership in repository at '/github/workspace' issue

* Revert "fix: workaround to solve fatal: detected dubious ownership in repository at '/github/workspace' issue"

This reverts commit 46c8673.

* fix: workaround to solve safe git dir
  • Loading branch information
wangyoucao577 authored Apr 29, 2023
1 parent 55f2d56 commit 7202609
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ else
exit 1
fi

# workaround to solve the issue: fatal: detected dubious ownership in repository at '/github/workspace'
git config --global --add safe.directory ${GITHUB_WORKSPACE}

# execute pre-command if exist, e.g. `go get -v ./...`
if [ ! -z "${INPUT_PRE_COMMAND}" ]; then
eval ${INPUT_PRE_COMMAND}
Expand Down

0 comments on commit 7202609

Please sign in to comment.