Harvest from DOI #132
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 run date' | |
add: "['harvested_dois.txt']" |