Skip to content

Commit 45be9c5

Browse files
Merge branch 'main' into develop
2 parents f8ce39e + 8bb05be commit 45be9c5

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
with:
28+
commit_message: 'Auto-update CITATION.cff from codemeta.json'
29+
file_pattern: 'CITATION.cff'

0 commit comments

Comments
 (0)