forked from LTREB-reservoirs/vera4cast
-
Notifications
You must be signed in to change notification settings - Fork 4
48 lines (40 loc) · 1.25 KB
/
catalog.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
on:
#schedule:
# - cron: '0 23 * * *'
workflow_dispatch:
name: catalog
jobs:
docker:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
OSN_KEY: ${{ secrets.OSN_KEY }}
OSN_SECRET: ${{ secrets.OSN_SECRET }}
#container: rocker/geospatial:latest
container: rocker/ml-verse
steps:
- run: git config --system --add safe.directory '*'
- uses: actions/checkout@v3
with:
fetch-depth: 0
set-safe-directory: '*'
- name: install deps
shell: Rscript {0}
run: |
remotes::install_deps(".", dep=TRUE)
install.packages("bench")
install.packages("aws.s3")
#reticulate::install_python(version = '3.11.5')
- name: install validator
run: |
pip install stac-validator
- name: Render
shell: Rscript {0}
run: source("catalog/update_stac.R")
- name: Commit and Push
run: |
git config user.name github-actions
git config user.email [email protected]
git add catalog/* .
git commit -a -m "update catalog" || echo "nothing to commit"
git push https://${GITHUB_PAT}:${GITHUB_PAT}@github.com/${GITHUB_REPOSITORY}