forked from favstats/TK2023
-
Notifications
You must be signed in to change notification settings - Fork 1
70 lines (69 loc) · 1.88 KB
/
r30.yml
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
60
61
62
63
64
65
66
67
68
69
70
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