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)
|
args=$(echo "$@" | xargs)
|
||||||
|
|
||||||
# Execute git-cliff
|
# Execute git-cliff
|
||||||
cp -r . /tmp/gitdir
|
mkdir app
|
||||||
mv /tmp/gitdir app
|
cp -r .git app
|
||||||
cd app
|
cd app
|
||||||
GIT_CLIFF_OUTPUT="$OUTPUT" git-cliff $args
|
GIT_CLIFF_OUTPUT="../$OUTPUT" git-cliff $args
|
||||||
exit_code=$?
|
exit_code=$?
|
||||||
|
|
||||||
# Output to console
|
# Output to console
|
||||||
|
|||||||
Reference in New Issue
Block a user