소스 검색

Fixes upload_client.yml

Taislin 6 달 전
부모
커밋
0248c61c1e
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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"