generated from caltechlibrary/template
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 1.02 KB
/
crossref_ror.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
name: Harvest from CrossRef by ROR
on:
schedule:
- cron: '0 15 * * 1-5'
workflow_dispatch:
inputs:
reason:
description: 'Reason'
required: false
default: 'Manual trigger'
jobs:
Harvest:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Python Deps
shell: bash
run: pip install -r requirements.txt
- name: Make downloads folder
shell: bash
run: mkdir $HOME/Downloads
- name: Install irdmtools
shell: bash
run: curl https://caltechlibrary.github.io/irdmtools/installer.sh | sh
- name: Path
shell: bash
run: cp $HOME/bin/doi2rdm $HOME/.local/bin/.
- name: Harvest DOIs
shell: bash
env:
RDMTOK: ${{ secrets.RDMTOK }}
run: python harvest.py crossref
- name: Commit Files
uses: EndBug/add-and-commit@v9
with:
message: 'Update run date'
add: "['last_run.txt', 'harvested_dois.txt']"