-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSync Zenodo DOIs
More file actions
27 lines (25 loc) · 791 Bytes
/
Sync Zenodo DOIs
File metadata and controls
27 lines (25 loc) · 791 Bytes
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
name: Sync Zenodo DOIs
on:
schedule:
- cron: '0 6 * * *'
workflow_dispatch:
jobs:
sync-zenodo:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Run sync
run: python3 sync_zenodo.py
- name: Fetch first
run: |
curl -s "https://zenodo.org/api/records?q=cabri%C3%A9&size=200&sort=mostrecent" -H "Accept: application/json" > zenodo_response.json
python3 sync_zenodo.py
- name: Commit
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add ZENODO_DOIS.md
git diff --staged --quiet || git commit -m "Auto-sync Zenodo DOIs"
git push