mirror of
https://github.com/cpina/github-action-push-to-another-repository.git
synced 2025-01-10 00:59:01 -07:00
Change to use git status
This commit is contained in:
parent
15a6ec1f72
commit
4296be5205
|
@ -167,7 +167,7 @@ git add .
|
||||||
echo "[+] git status:"
|
echo "[+] git status:"
|
||||||
git status
|
git status
|
||||||
|
|
||||||
if [ "$ALLOW_EMPTY_BRANCHES" = "false" ] && [ "$(git diff --numstat | wc -l | xargs echo -n)" -eq 0 ]
|
if [ "$ALLOW_EMPTY_BRANCHES" = "false" ] && [ "$(git status)" = "nothing to commit, working tree clean" ]
|
||||||
then
|
then
|
||||||
echo "[~] No changes have been made"
|
echo "[~] No changes have been made"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue
Block a user