forked from favstats/TK2023
-
Notifications
You must be signed in to change notification settings - Fork 1
91 lines (86 loc) · 2.4 KB
/
ggl.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: "Google Reports"
on:
schedule:
- cron: '0 5,6,17,18 * * *'
jobs:
update-google-reports:
name: Update Google Reports
runs-on: ubuntu-20.04
permissions:
contents: write
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
r-version: 'release'
- name: Setup - Checkout repo
uses: actions/checkout@v3
- 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::xml2
any::rvest
any::reticulate
any::fs
any::countrycode
any::progress
any::cli
any::digest
any::glue
any::vroom
any::prettydoc
any::DT
- name: Apt-get update things
run: |
sudo apt-get update
- 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
- run: echo "🍏 This job's status is ${{ job.status }}."
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '16.x' # Choose the appropriate Node.js version
- name: Install dependencies
run: npm ci
- name: Install playwright browsers
run: npx playwright install --with-deps
- name: "Check Playwright CLI"
run: npx playwright --version
- name: "Install Packages"
run: |
remotes::install_github("benjaminguinaudeau/playwrightr", force = T)
shell: Rscript {0}
- name: Pull Latest Changes
run: git pull origin main
- name: "Script - Google Run"
run: Rscript 'selenium.R'
- name: "Commit"
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Retrieve Google Reports