Harvest from CrossRef by ROR #19
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 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']" |