-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (38 loc) · 1.17 KB
/
generate_plots.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
on:
push:
branches:
- master
name: Generate plots and aggregate metrics
jobs:
generate_plots:
runs-on: ubuntu-latest
steps:
- run: |
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf /opt/ghc
sudo rm -rf /usr/share/dotnet
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- uses: actions/checkout@v2
- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- name: Install dependencies
run: |
R -e 'install.packages("purrr")'
R -e 'install.packages("dplyr")'
R -e 'install.packages("stringr")'
R -e 'install.packages("ggplot2")'
R -e 'install.packages("svglite")'
- name: Run R srcipt
run: |
mkdir -p plots/summary
mkdir -p plots/timeline
mkdir -p aggregated_data
R < analytics.R --no-save
- name: Add changed files
run: |
git checkout -b results
git add aggregated_data plots
git -c user.name=Bot -c [email protected] commit --message "Update plots"
git push --set-upstream origin results --force