Skip to content

Workflow file for this run

name: Convert CSV files to Darwin Core compliant event and occurrence files
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
generate-data:
runs-on: windows-latest
# runs-on: ubuntu-latest #errors out when installing 'units' package
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-renv@v2
- name: Generate data # Run the script
run: source("R/data_to_dwc.R")
shell: Rscript {0}
- name: Commit files # Commit changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git add .
git diff-index --quiet HEAD || (git commit -m "update data" && git push)