Run GPCP download code #65
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run GPCP download code | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '10 2 * * 0' | |
jobs: | |
runcode: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Run | |
uses: appleboy/[email protected] | |
with: | |
host: ${{secrets.HOST}} | |
username: ${{secrets.USER}} | |
key: ${{secrets.SSH_KEY}} | |
passphrase: ${{secrets.PASSPHRASE}} | |
command_timeout: 30m | |
script: | | |
module use /g/data/hh5/public/modules | |
module load conda/analysis3 | |
cd /g/data/ia39/aus-ref-clim-data-nci/gpcp/code | |
yr=$(date +'%Y') | |
python gpcp.py -y $yr -v v1-3 >> update_log.txt | |
python gpcp.py -y $yr -t monthly -v v2-3 >> update_log.txt | |
bash gpcp_concat.sh -y $yr -v 1-3 -f day | |
bash gpcp_concat.sh -y $yr -v 2-3 -f mon |