Skip to content

run_analyse

run_analyse #203

Workflow file for this run

name: run_analyse
on:
workflow_run:
workflows: ["Opdater kursus tilmeldinger"]
types:
- completed
jobs:
analyse:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v2
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y pandoc
sudo apt-get install -y libcurl4-openssl-dev
sudo apt-get install -y libfreetype6-dev libpng-dev libtiff5-dev libjpeg-dev
sudo apt-get install -y libfontconfig1-dev libfreetype6-dev libfribidi-dev libharfbuzz-dev
- name: Install packages
run: |
Rscript -e 'install.packages("glue")'
Rscript -e 'install.packages("here")'
Rscript -e 'install.packages("tidyverse")'
Rscript -e 'install.packages("knitr")'
Rscript -e 'install.packages("rmarkdown")'
Rscript -e 'install.packages("httr")'
Rscript -e 'install.packages("httr2")'
Rscript -e 'install.packages("readr")'
Rscript -e 'install.packages("openssl")'
Rscript -e 'install.packages("gt")'
Rscript -e 'install.packages("scales")'
Rscript -e 'install.packages("zoo")'
Rscript -e 'install.packages("digest")'
- name: Hent nye tilmeldinger
env:
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET}}
run: Rscript -e 'rmarkdown::render("kursusanalysen.Rmd", output_format = "html_document")'
- name: Commit results
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git add -A .
git commit -m 'Opdateret med nye tilmeldinger' || echo "No changes to commit"
git push origin || echo "No changes to commit"