Update entrypoint.sh

This commit is contained in:
2023-05-23 13:12:08 +02:00
committed by GitHub
parent e3682724e1
commit 52470443d7

View File

@@ -15,7 +15,7 @@ _git_setup() {
password $GITHUB_TOKEN password $GITHUB_TOKEN
EOF EOF
chmod 600 $HOME/.netrc chmod 600 $HOME/.netrc
git config --global --add safe.directory /github/workspace
git config --global user.email "actions@github.com" git config --global user.email "actions@github.com"
git config --global user.name "GitHub Action" git config --global user.name "GitHub Action"
} }
@@ -25,6 +25,8 @@ _git_changed() {
[[ -n "$(git status -s)" ]] [[ -n "$(git status -s)" ]]
} }
git config --global --add safe.directory /github/workspace
echo "Running autoflake..." echo "Running autoflake..."
autoflake $INPUT_CHECKPATH $INPUT_OPTIONS || echo "Problem running autoflake!" autoflake $INPUT_CHECKPATH $INPUT_OPTIONS || echo "Problem running autoflake!"