Skip to content

add r version to try to fix action issue #29

add r version to try to fix action issue

add r version to try to fix action issue #29

name: Update target data
on:
workflow_dispatch:
workflow_run:
workflows: [Update RSV data]
types:
- completed
jobs:
update-target-data:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup R
uses: r-lib/actions/setup-r@v2
with:

Check failure on line 20 in .github/workflows/update-target.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/update-target.yaml

Invalid workflow file

You have an error in your yaml syntax on line 20
r-version: '4.4.3'
- name: Install system dependencies
run: sudo apt-get install libcurl4-openssl-dev libudunits2-dev libgdal-dev
- name: Install dependencies
run: |
R -e 'install.packages(c("lubridate", "dplyr", "tidyr", "arrow","readr"))'
- name: Update target data
run: Rscript target-data/get_target_data.R
- name: Commit
run: |
git config user.name Github-Actions
git config user.email "<>"
if [ -n "$(git status --porcelain)" ]; then
git pull
git add .
git commit -m "Update target data $(date)"
git push
echo "Target data updated";
else
echo "no updates";
fi