Skip to content

Commit 4f92a93

Browse files
committed
Add codemeta2cff
1 parent effbad2 commit 4f92a93

2 files changed

Lines changed: 33 additions & 5 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CodeMeta2CFF
2+
run-name: Run CodeMeta2CFF after ${{github.event_name}} by ${{github.actor}}
3+
4+
on:
5+
push:
6+
paths: ['codemeta.json']
7+
workflow_dispatch:
8+
inputs:
9+
reason:
10+
description: 'Reason'
11+
required: false
12+
default: 'Manual trigger'
13+
14+
jobs:
15+
CodeMeta2CFF:
16+
runs-on: ubuntu-latest
17+
permissions:
18+
contents: write
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
- name: Convert CFF
23+
uses: caltechlibrary/codemeta2cff@main
24+
- name: Commit CFF
25+
uses: EndBug/add-and-commit@v9
26+
with:
27+
message: 'Add updated CITATION.cff from codemeta.json file'
28+
add: 'CITATION.cff'

codemeta.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"codeRepository": "https://github.com/caltechlibrary/datatools",
55
"author": [
66
{
7-
"id": "https://orcid.org/0000-0003-0900-6903",
8-
"type": "Person",
7+
"@id": "https://orcid.org/0000-0003-0900-6903",
8+
"@type": "Person",
99
"givenName": "R. S.",
1010
"familyName": "Doiel",
1111
"affiliation": {
@@ -17,8 +17,8 @@
1717
],
1818
"maintainer": [
1919
{
20-
"id": "https://orcid.org/0000-0003-0900-6903",
21-
"type": "Person",
20+
"@id": "https://orcid.org/0000-0003-0900-6903",
21+
"@type": "Person",
2222
"givenName": "R. S.",
2323
"familyName": "Doiel",
2424
"affiliation": {
@@ -66,4 +66,4 @@
6666
"issueTracker": "https://github.com/caltechlibrary/datatools/issues",
6767
"downloadUrl": "https://github.com/caltechlibrary/datatools/releases/",
6868
"releaseNotes": "Added json2jsonl. It will render a JSON array document as JSON lines. A `-as-dataset` option is included. If\nan top level attribute name is provided and matches the object it will render the result as a dataset load\ncomponatible object. Of the top level attribute name is not found then that object is skipped with a message\nwritten to standard error."
69-
}
69+
}

0 commit comments

Comments
 (0)