Skip to content

Harvest from DOI

Harvest from DOI #145

Workflow file for this run

name: Harvest from DOI
on:
workflow_dispatch:
inputs:
doi:
description: 'DOI or multiple DOIs (separated by a space) to harvest from'
required: true
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 doi -doi "${{github.event.inputs.doi}}" -actor ${{github.actor}}
- name: Commit File
uses: EndBug/add-and-commit@v9
with:
message: 'Update harvested_dois.txt'
add: "['harvested_dois.txt']"