lobobuild #1369
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
schedule: | |
- cron: "0 0 1 * *" | |
name: lobobuild | |
jobs: | |
render: | |
name: lobobuild | |
runs-on: ubuntu-20.04 | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
r-version: '4.0.2' | |
extra-repositories: 'https://fawda123.r-universe.dev' | |
- uses: r-lib/actions/setup-pandoc@v1 | |
- name: Install Ubuntu dependencies | |
run: | | |
sudo apt-get install libcurl4-openssl-dev | |
sudo apt-get install libpoppler-cpp-dev | |
sudo apt-get install libudunits2-dev | |
sudo apt-get install libgdal-dev | |
sudo apt-get install libgeos-dev | |
sudo apt-get install libproj-dev | |
sudo apt-get install libharfbuzz-dev | |
sudo apt-get install libfribidi-dev | |
- uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
packages: | | |
any::here | |
any::janitor | |
any::tidyverse | |
WtRegDO | |
- name: Build lobo data | |
run: Rscript -e 'source("R/lobo_dat_proc.R")' | |
- name: Commit results | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Actions" | |
git add -A | |
git commit -m 'Re-build lobo data' || echo "No changes to commit" | |
git push origin || echo "No changes to commit" |