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
|
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!"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user