Skip to content

Commit 591231a

Browse files
committed
use github action to validate citation cff
1 parent 06f5a29 commit 591231a

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

.github/workflows/validate_cff.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,8 @@ jobs:
2121
steps:
2222

2323
- uses: actions/checkout@v3
24-
with:
25-
fetch-depth: 1
2624

27-
- name: Set up Python
28-
uses: actions/setup-python@v4
25+
- name: Check whether the citation metadata from CITATION.cff is valid
26+
uses: citation-file-format/[email protected]
2927
with:
30-
python-version: 3.9
31-
32-
- name: Install dependencies
33-
run: |
34-
python -m pip install --upgrade pip setuptools
35-
pip3 install cffconvert
36-
37-
- name: Validate CITATION.cff
38-
run: make validate_cff
28+
args: "--validate"

CITATION.cff

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ authors:
8585
orcid: "https://orcid.org/0000-0002-1066-6266"
8686
affiliation: "Université de Montréal"
8787

88+
- family-names: "Yang"
89+
given-names: "Ying"
90+
affiliation: "Université catholique de Louvain"
91+
8892
license: GPL-3.0
8993

9094
keywords:

0 commit comments

Comments
 (0)