diff --git a/.github/workflows/ATL03_temporary (copy).yml b/.github/workflows/ATL03_temporary (copy).yml new file mode 100644 index 0000000..51fa3df --- /dev/null +++ b/.github/workflows/ATL03_temporary (copy).yml @@ -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 diff --git a/.github/workflows/ATL03_temporary.yml b/.github/workflows/ATL03_temporary.yml new file mode 100644 index 0000000..806b1d6 --- /dev/null +++ b/.github/workflows/ATL03_temporary.yml @@ -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