From e18db403ad5649be3b875c97f78a461c82c2bef0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Wed, 21 Dec 2022 22:42:06 +0300 Subject: [PATCH] test: revert permissions --- entrypoint.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 198d937..458f259 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -5,7 +5,8 @@ set -uxo pipefail set -o noglob # Set up working directory -chown -R root:root . +owner=$(stat -c "%u:%g" .) +chown -R "$(id -u)" . # Create the output directory OUTPUT=${OUTPUT:="git-cliff/CHANGELOG.md"} @@ -21,6 +22,9 @@ exit_code=$? # Output to console cat "$OUTPUT" +# Revert permissions +chown -R "$owner" . + # Set the changelog content echo "content<> $GITHUB_OUTPUT cat "$OUTPUT" >> $GITHUB_OUTPUT