Ver código fonte

Fixes upload_client.yml

Taislin 7 meses atrás
pai
commit
0248c61c1e
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      .github/workflows/upload-client.yml

+ 2 - 2
.github/workflows/upload-client.yml

@@ -58,7 +58,7 @@ jobs:
           git config user.email "action@github.com"
           git add .
           # Check if there are staged changes. git diff exits 0 if no changes, 1 if changes.
-          if git diff --staged --quiet; then
+          if ! git diff --staged --quiet; then
             echo "No client changes to commit."
           else
             git commit -m "Update compiled client from Civ14"
@@ -74,7 +74,7 @@ jobs:
           git config user.email "action@github.com"
           git add .
           # Check if there are staged changes
-          if git diff --staged --quiet; then
+          if ! git diff --staged --quiet; then
             echo "No server changes to commit."
           else
             git commit -m "Update compiled server from Civ14"