forked from LTREB-reservoirs/vera4cast
-
Notifications
You must be signed in to change notification settings - Fork 4
59 lines (50 loc) · 1.72 KB
/
baselines_daily.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# 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 20 * * *'
workflow_dispatch:
name: baseline-daily-forecasts
jobs:
terrestrial:
runs-on: ubuntu-latest
container: eco4cast/rocker-neon4cast:latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
steps:
- uses: actions/checkout@v4
- name: Generate forecasts
shell: Rscript {0}
run: |
source("baseline_models/run_terrestrial_baselines.R")
aquatics:
runs-on: ubuntu-latest
container: eco4cast/rocker-neon4cast:latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
steps:
- uses: actions/checkout@v3
- name: Generate forecasts
shell: Rscript {0}
run: |
source("baseline_models/run_aquatics_baselines.R")
phenology:
runs-on: ubuntu-latest
container: eco4cast/rocker-neon4cast:latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
steps:
- uses: actions/checkout@v3
- name: Generate forecasts
shell: Rscript {0}
run: |
source("baseline_models/run_phenology_baselines.R")
- name: Healthcheck
run: |
curl -m 10 --retry 5 https://hc-ping.com/5e8257df-e494-4946-8aee-1f78eba0d5b7