There was an error while loading. Please reload this page.
2 parents f8ce39e + 8bb05be commit 45be9c5Copy full SHA for 45be9c5
1 file changed
.github/workflows/update-citation.yml
@@ -0,0 +1,29 @@
1
+name: Update CITATION.cff from Codemeta
2
+
3
+on:
4
+ push:
5
+ paths:
6
+ - 'codemeta.json'
7
+ workflow_dispatch: # enables manual triggers
8
9
+jobs:
10
+ convert:
11
+ runs-on: ubuntu-latest
12
+ permissions:
13
+ contents: write # Needed to commit changes back to the repo
14
15
+ steps:
16
+ - name: Checkout repository
17
+ uses: actions/checkout@v4
18
19
+ - name: Run Codemeta Converter Action
20
+ uses: kingsdigitallab/credits-tools@main
21
+ with:
22
+ codemeta-path: 'codemeta.json'
23
+ cff-path: 'CITATION.cff'
24
25
+ - name: Check for changes and commit
26
+ uses: stefanzweifel/git-auto-commit-action@v5
27
28
+ commit_message: 'Auto-update CITATION.cff from codemeta.json'
29
+ file_pattern: 'CITATION.cff'
0 commit comments