浏览代码

Renamed hasChanges to HAS_CHANGES in hopes that it will work and added debug output to reference-comparison

CPK 7 月之前
父节点
当前提交
bc5b073c2a
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 2 2
      .github/workflows/localization.yml
  2. 1 0
      .github/workflows/localization/reference-comparison.py

+ 2 - 2
.github/workflows/localization.yml

@@ -33,14 +33,14 @@ jobs:
           POEDITOR_API_KEY: ${{ secrets.POEDITORKEY }}
           POEDITOR_PROJECT_ID: ${{ secrets.POEDITORPROJECT }}
     outputs:
-      hasChanges: ${{ steps.upload-comparison.outputs.HAS_CHANGES }}
+      HAS_CHANGES: ${{ steps.upload-comparison.outputs.HAS_CHANGES }}
 
   upload:
     name: "Upload English changes"
     runs-on: ubuntu-latest
     needs: compare-upload
     environment: poeditor
-    if: ${{ needs.compare-upload.outputs.hasChanges == 'true' }}
+    if: ${{ needs.compare-upload.outputs.HAS_CHANGES == 'true' }}
     steps:
       - name: Checkout
         uses: actions/[email protected]

+ 1 - 0
.github/workflows/localization/reference-comparison.py

@@ -84,6 +84,7 @@ def main():
 
     with open(GITHUB_OUTPUT, "a") as f:
         f.write(f"HAS_CHANGES={str(has_changes).lower()}")
+        print(f"HAS_CHANGES={str(has_changes).lower()}")
 
     if not has_changes:
         print("✅ No changes detected. Local and remote are in sync.")