-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (46 loc) · 1.24 KB
/
update.yml
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
name: Update
on:
schedule:
- cron: "0 5 * * 1"
push:
branches: [main]
jobs:
run_script_and_update:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
permissions:
contents: write
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
persist-credentials: true
fetch-depth: 0
clean: true
- name: setup miniconda
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
use-mamba: true
auto-activate-base: false
activate-environment: test
auto-update-conda: true
python-version: "3.11"
environment-file: etc/example-environment.yml
- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
r-version: "4.2.3"
use-public-rspm: true
- run: Rscript -e 'install.packages(c("stringr", "tibble","data.table","stringr", "purrr", "usethis"))'
- name: Run bash scripts1
run: |
git submodule update --init --recursive
ls -al ./metadata/journals
- name: Run bash scripts2
run: |
ls -al
bash ./main.sh