mirror of
https://github.com/creyD/autoflake_action.git
synced 2026-04-12 19:40:29 +02:00
Update entrypoint.sh
This commit is contained in:
@@ -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!"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user