Skip to content

Commit

Permalink
added cron-jobs for ATL03 and LEVEL3A related to #14
Browse files Browse the repository at this point in the history
  • Loading branch information
mlampros committed Dec 9, 2023
1 parent 1d4426a commit 72db419
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ATL03_temporary (copy).yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@

#...............................................
# check every day if the "LEVEL3A" is functional [ once it becomes functional remove this cron-job ]
#...............................................

on:
schedule:
- cron: "0 6 * * *"
push:
branches: master

jobs:
container:
runs-on: ubuntu-latest
timeout-minutes: 30
container:
image: mlampros/icesat2r:rstudiodev
credentials:
username: ${{ github.repository_owner }}
password: ${{ secrets.DOCKER_PASSWORD }}
steps:
- name: Check Out Repo
uses: actions/checkout@v3

- name: Run the LEVEL3A httr-get
working-directory: ${{ github.workspace }}
run: |
Rscript -e 'if (httr::GET(url = "https://openaltimetry.earthdatacloud.nasa.gov/data/api/icesat2/level3a?product=atl06&minx=140&miny=-6.641235&maxx=145&maxy=-1.641235&trackId=619&outputFormat=csv&startDate=2021-02-02&endDate=2021-02-02&client=portal")$status_code != 200) stop("level3a_data is not functional!")'
shell: bash
29 changes: 29 additions & 0 deletions .github/workflows/ATL03_temporary.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@

#.............................................
# check every day if the "ATL03" is functional [ once it becomes functional remove this cron-job ]
#.............................................

on:
schedule:
- cron: "0 6 * * *"
push:
branches: master

jobs:
container:
runs-on: ubuntu-latest
timeout-minutes: 30
container:
image: mlampros/icesat2r:rstudiodev
credentials:
username: ${{ github.repository_owner }}
password: ${{ secrets.DOCKER_PASSWORD }}
steps:
- name: Check Out Repo
uses: actions/checkout@v3

- name: Run the ATL03 httr-get
working-directory: ${{ github.workspace }}
run: |
Rscript -e 'if (httr::GET(url = "https://openaltimetry.earthdatacloud.nasa.gov/data/api/icesat2/atl03?minx=140&miny=-6.641235&maxx=145&maxy=-1.641235&trackId=619&beamName=gt1l&outputFormat=csv&date=2021-02-02&client=portal&sampling=false")$status_code != 200) stop("ATL03 is not functional!")'
shell: bash

0 comments on commit 72db419

Please sign in to comment.