-
Notifications
You must be signed in to change notification settings - Fork 24
60 lines (58 loc) · 2.34 KB
/
Create_ForC_simplified.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag.
# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions
on:
workflow_run:
workflows:
- QA_QC_checks
types:
- completed
# push:
# paths:
# - 'data/**'
# - 'scripts/Database_manipulation/Create_ForC_simplified.R'
# - 'scripts/Database_manipulation/Create_ForC_simplified_metadata.R'
# - 'scripts/Database_manipulation/Flag_suspected_duplicate_in_ForC_simplified.R'
# pull_request:
# paths:
# - 'data/**'
# - 'scripts/Database_manipulation/Create_ForC_simplified.R'
# - 'scripts/Database_manipulation/Create_ForC_simplified_metadata.R'
# - 'scripts/Database_manipulation/Flag_suspected_duplicate_in_ForC_simplified.R'
name: Create_ForC_simplified
jobs:
Create_ForC_simplified:
runs-on: windows-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v1
- name: Install dependencies
run: |
install.packages(c("remotes", "rcmdcheck", "lubridate"))
# remotes::install_deps(dependencies = TRUE)
shell: Rscript {0}
# - name: Check
# run: |
# options(crayon.enabled = TRUE)
# rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error")
# shell: Rscript {0}
- name: Ignore SITES without coordinates
id: Ignore_SITES_without_coordinates
run: |
source("scripts/Database_manipulation/Separate_out_SITES_with_missing_coordinates.R")
shell: Rscript {0}
- name: Create ForC simplified
id: Create_ForC_simplified
run: |
source("scripts/Database_manipulation/Create_ForC_simplified.R")
source("scripts/Database_manipulation/Create_ForC_simplified_metadata.R")
source("scripts/Database_manipulation/Flag_suspected_duplicate_in_ForC_simplified.R")
shell: Rscript {0}
- name: Commit new files
run: |
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Actions"
git pull
git commit -m "Updating ForC_simplifed" ForC_simplified/ForC_simplified.csv ForC_simplified/ForC_simplified_metadata.csv
git push