From df3d46fac426fea3f6485bc308aad2ec8103ceab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Tue, 20 Dec 2022 00:05:16 +0300 Subject: [PATCH] refactor(action): simplify git safe directory workaround --- entrypoint.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 29b305c..198d937 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -5,10 +5,7 @@ set -uxo pipefail set -o noglob # Set up working directory -WORKDIR="app" -cp -r . /tmp/gitdir -mv /tmp/gitdir "$WORKDIR" -cd "$WORKDIR" || exit +chown -R root:root . # Create the output directory OUTPUT=${OUTPUT:="git-cliff/CHANGELOG.md"} @@ -30,7 +27,6 @@ cat "$OUTPUT" >> $GITHUB_OUTPUT echo "EOF" >> $GITHUB_OUTPUT # Set output file -OUTPUT="$WORKDIR/$OUTPUT" echo "changelog=$OUTPUT" >> $GITHUB_OUTPUT # Pass exit code to the next step