Skip to content

Harvest from CrossRef by ROR #36

Harvest from CrossRef by ROR

Harvest from CrossRef by ROR #36

Workflow file for this run

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']"