mirror of
https://github.com/orhun/git-cliff-action.git
synced 2026-03-22 07:25:43 +08:00
fix(git): improve git safe directory workaround
This commit is contained in:
@@ -13,10 +13,10 @@ mkdir -p "$(dirname $OUTPUT)"
|
||||
args=$(echo "$@" | xargs)
|
||||
|
||||
# Execute git-cliff
|
||||
cp -r . /tmp/gitdir
|
||||
mv /tmp/gitdir app
|
||||
mkdir app
|
||||
cp -r .git app
|
||||
cd app
|
||||
GIT_CLIFF_OUTPUT="$OUTPUT" git-cliff $args
|
||||
GIT_CLIFF_OUTPUT="../$OUTPUT" git-cliff $args
|
||||
exit_code=$?
|
||||
|
||||
# Output to console
|
||||
|
||||
Reference in New Issue
Block a user