Skip to content

Commit

Permalink
fix safe directory issue
Browse files Browse the repository at this point in the history
fix fatal error for safe directory issue. (#16)

Signed-off-by: Inho Oh <[email protected]>
  • Loading branch information
webispy committed Jul 27, 2022
1 parent 0159787 commit e605aac
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ echo "REF: $GITHUB_REF"
echo "HEAD-REF: $GITHUB_HEAD_REF"
echo "BASE-REF: $GITHUB_BASE_REF"
pwd
ls -l `pwd`
id

# Add safe directory option for github workspace to disable fatal error
# - docker container uid is 0(root)
# - github workspace directory owner is 1001
git config --global --add safe.directory /github/workspace

RESULT=0

Expand Down Expand Up @@ -54,4 +61,4 @@ done

echo -e "\e[1;34mDone\e[0m"

exit $RESULT
exit $RESULT

0 comments on commit e605aac

Please sign in to comment.