Skip to content

Creation of CSV

Creation of CSV #483

Workflow file for this run

# Hourly scraping
name: Creation of CSV
# Controls when the action will run.
on:
workflow_dispatch:
push:
branches: main
paths:
- 'translation_status.R'
- '.github/workflows/csv.yml'
schedule:
- cron: '0 0 * * *'
jobs:
Messages:
# The type of runner that the job will run on
runs-on: macos-latest
# Load repo and install R
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: r-devel/r-svn
path: r-svn
- uses: r-lib/actions/setup-r@v2
- name: Install packages
uses: r-lib/actions/setup-r-dependencies@v2
with:
packages: |
any::ISOcodes
any::dplyr
any::purrr
any::readr
any::tidyr
any::withr
any::stringr
# Run R script
- name: Scrape
run: Rscript translation_status.R
- name: Commit and Push Any Changes
run: |
git pull
git add *.csv
if ! git diff-index --quiet HEAD; then
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit -m "Update r-devel message status"
git push
fi