update samplingProtocol text. Add DOI after initial publication of th… #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v4 | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
r-version: '4.3.2' | |
- 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) |