Skip to content

30 Timeframe

30 Timeframe #36

Workflow file for this run

name: "30 Timeframe"
on:
schedule:
- cron: '0 23,0,11,12 * * *'
jobs:
update-data:
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
- run: echo "🍏 This job's status is ${{ job.status }}."
- name: "Install Packages"
run: |
remotes::install_github('hadley/emo')
shell: Rscript {0}
- name: "Script - Run"
run: Rscript 'get_audiences.R' 30
- name: "Script - Update Dashboard"
run: Rscript 'start.R'
- name: "Commit"
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Script Routine Thirty