Skip to content

target-generation

target-generation #197

Workflow file for this run

# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
schedule:
- cron: '0 4 * * *'
workflow_dispatch:
name: target-generation
jobs:
phenology:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_SUBMISSIONS }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_SUBMISSIONS }}
OSN_KEY: ${{ secrets.OSN_KEY }}
OSN_SECRET: ${{ secrets.OSN_SECRET }}
container: rocker/geospatial:latest
steps:
- uses: actions/checkout@v3
- name: Generate targets
shell: Rscript {0}
run: |
install.packages("RCurl")
source("targets/phenology_targets.R")
beetles:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_SUBMISSIONS }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_SUBMISSIONS }}
OSN_KEY: ${{ secrets.OSN_KEY }}
OSN_SECRET: ${{ secrets.OSN_SECRET }}
NEON_TOKEN: ${{ secrets.NEON_TOKEN }}
container: rocker/geospatial:latest
steps:
- uses: actions/checkout@v3
- name: Generate targets
shell: Rscript {0}
run: |
install.packages(c("neonstore","RCurl","duckdbfs","ISOweek"))
source("targets/beetles_targets.R")
ticks:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_SUBMISSIONS }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_SUBMISSIONS }}
OSN_KEY: ${{ secrets.OSN_KEY }}
OSN_SECRET: ${{ secrets.OSN_SECRET }}
NEON_TOKEN: ${{ secrets.NEON_TOKEN }}
container: rocker/geospatial:latest
steps:
- uses: actions/checkout@v4
- name: Generate targets
shell: Rscript {0}
run: |
install.packages(c("neonstore","RCurl","duckdbfs","ISOweek"))
source("targets/ticks_targets.R")
- name: Healthcheck
run: |
curl -m 10 --retry 5 https://hc-ping.com/95d7869d-538f-4145-9d1e-e6655320066d