Skip to content

update

update #115

Workflow file for this run

name: "Render"
on:
push:
branches:
- main
jobs:
render-dashboard:
name: Update Dashboard
runs-on: ubuntu-latest
permissions:
contents: write
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: quarto-dev/quarto-actions/setup@v2
- name: Add Quarto to PATH
run: |
echo "export PATH=$PATH:$HOME/.local/bin" >> $GITHUB_ENV
- run: |
quarto --version
- name: Setup - Checkout repo
uses: actions/checkout@v3
- name: Apt-get needed things
run: |
sudo apt-get install --no-install-recommends -y \
libssl-dev \
libcurl4-openssl-dev \
libxml2-dev \
libharfbuzz-dev \
libfribidi-dev \
libudunits2-dev \
libgdal-dev
- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
r-version: 'release'
- uses: r-lib/actions/setup-r-dependencies@v2
with:
cache-version: 1
needs: |
any::tidyverse
any::httr
any::remotes
any::shiny
any::scales
any::treemap
any::here
any::jsonlite
any::janitor
any::quarto
any::highcharter
any::lubridate
any::gt
any::gtExtras
any::pacman
any::openxlsx
any::sf
any::prettydoc
any::DT
- run: echo "🍏 This job's status is ${{ job.status }}."
- name: "Install Packages"
run: |
remotes::install_github('hadley/emo')
shell: Rscript {0}
- name: "Script - Update Dashboard"
run: Rscript 'start.R'
- name: "Commit"
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Render Dashboard