From 52470443d7c1738d5662cac989ab1c379103eae2 Mon Sep 17 00:00:00 2001 From: Conrad Date: Tue, 23 May 2023 13:12:08 +0200 Subject: [PATCH] Update entrypoint.sh --- entrypoint.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 4cd967b..dbe8a93 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -15,7 +15,7 @@ _git_setup() { password $GITHUB_TOKEN EOF chmod 600 $HOME/.netrc - git config --global --add safe.directory /github/workspace + git config --global user.email "actions@github.com" git config --global user.name "GitHub Action" } @@ -25,6 +25,8 @@ _git_changed() { [[ -n "$(git status -s)" ]] } +git config --global --add safe.directory /github/workspace + echo "Running autoflake..." autoflake $INPUT_CHECKPATH $INPUT_OPTIONS || echo "Problem running autoflake!"