We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1617119 commit 2977648Copy full SHA for 2977648
1 file changed
sync-zenodo-v2.yml
@@ -0,0 +1,32 @@
1
+name: Sync Zenodo DOIs
2
+
3
+on:
4
+ schedule:
5
+ - cron: '0 6 * * *'
6
+ workflow_dispatch:
7
8
+jobs:
9
+ sync-zenodo:
10
+ runs-on: ubuntu-latest
11
+ permissions:
12
+ contents: write
13
14
+ steps:
15
+ - uses: actions/checkout@v4
16
17
+ - name: Fetch Zenodo records
18
+ run: |
19
+ curl -s "https://zenodo.org/api/records?q=cabri%C3%A9&size=200&sort=mostrecent" \
20
+ -H "Accept: application/json" \
21
+ > zenodo_response.json
22
23
+ - name: Generate DOI list
24
+ run: python3 sync_zenodo.py
25
26
+ - name: Commit
27
28
+ git config user.name "github-actions[bot]"
29
+ git config user.email "github-actions[bot]@users.noreply.github.com"
30
+ git add ZENODO_DOIS.md
31
+ git diff --staged --quiet || git commit -m "Auto-sync Zenodo DOIs"
32
+ git push
0 commit comments