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