Bladeren bron

fix: proper pushurl for gin.hemio.de, add debugging

Mika Pflüger 6 maanden geleden
bovenliggende
commit
c99ec97128
2 gewijzigde bestanden met toevoegingen van 7 en 2 verwijderingen
  1. 5 2
      .github/workflows/download.yaml
  2. 2 0
      download.py

+ 5 - 2
.github/workflows/download.yaml

@@ -34,8 +34,8 @@ jobs:
         run: datalad clone https://github.com/mikapfl/unfccc_di_data.git
       - name: configure push access to gin.hemio.de
         run: |
-          datalad -C unfccc_di_data/ siblings add -s ginhemio --url https://gin.hemio.de/CR/unfcc_di_data --pushurl git@gin.hemio.de/CR/unfcc_di_data
           cd unfccc_di_data/
+          datalad siblings add -s ginhemio --url https://gin.hemio.de/CR/unfcc_di_data --pushurl gin.hemio.de:/CR/unfcc_di_data
           git config remote.ginhemio.annex-ignore false
       - name: setup Python
         uses: actions/setup-python@v5
@@ -46,4 +46,7 @@ jobs:
       - name: download data
         run: datalad -C unfccc_di_data/ rerun download
       - name: publish newly downloaded data
-        run: datalad -C unfccc_di_data/ push --to ginhemio --data anything
+        run: |
+          cd unfccc_di_data/
+          datalad siblings
+          datalad -l debug push --to ginhemio --data anything

+ 2 - 0
download.py

@@ -10,6 +10,8 @@ ROOT_DIR = pathlib.Path(os.path.abspath(os.curdir))  # This is your Project Root
 def main():
     r = UNFCCCApiReader()
     for party in tqdm.tqdm(r.parties["code"], desc="parties"):
+        if party != "AUS":
+            continue
         df = r.query(party_code=party, progress=False)
 
         annexI = party in r.annex_one_reader.parties["code"].values