Skip to content

Commit

Permalink
refactor(action): simplify git safe directory workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Dec 19, 2022
1 parent 54b96fe commit df3d46f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
Expand All @@ -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
Expand Down

0 comments on commit df3d46f

Please sign in to comment.