download.yaml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. name: download
  2. on:
  3. workflow_dispatch:
  4. jobs:
  5. download:
  6. runs-on: ubuntu-22.04
  7. steps:
  8. - name: set download date
  9. run: echo "DOWNLOAD_DATE=$(date +"%Y-%m-%d")" >> $GITHUB_ENV
  10. - name: install datalad
  11. uses: awalsh128/cache-apt-pkgs-action@v1.4.2
  12. with:
  13. packages: datalad
  14. version: 1.0
  15. - name: install ssh key for gin.hemio.de access
  16. uses: shimataro/ssh-key-action@v2
  17. with:
  18. key: ${{ secrets.GIN_HEMIO_SSH_KEY }}
  19. name: id_ginhemio # optional
  20. known_hosts: |
  21. gin.hemio.de ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPA+r/S2vn2JmN9z62e/vla/pDgaEfFUmghlOP7idyP9
  22. config: |
  23. Host gin.hemio.de
  24. User git
  25. IdentityFile ~/.ssh/id_ginhemio
  26. IdentitiesOnly yes
  27. - name: clone repo
  28. run: datalad clone https://github.com/mikapfl/unfccc_di_data.git
  29. - name: setup Python
  30. uses: actions/setup-python@v5
  31. with:
  32. python-version: '3.11'
  33. - name: install requirements
  34. run: pip install -r unfccc_di_data/requirements.txt
  35. - name: download data
  36. run: datalad -C unfccc_di_data/ rerun download