test: revert permissions

This commit is contained in:
Orhun Parmaksız
2022-12-21 22:42:06 +03:00
parent ec4e177077
commit e18db403ad

View File

@@ -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<<EOF" >> $GITHUB_OUTPUT
cat "$OUTPUT" >> $GITHUB_OUTPUT