Merge branch 'main' into exposure-correction-region #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: cffconvert | |
on: | |
push: | |
paths: | |
- CITATION.cff | |
jobs: | |
validate: | |
name: "cffconvert" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install eossr | |
run: | | |
pip install eossr | |
- name: Check out a copy of the repository | |
uses: actions/checkout@v4 | |
- name: Check whether the citation metadata from CITATION.cff is valid | |
uses: citation-file-format/[email protected] | |
with: | |
args: "--validate" | |
- name: Convert CITATION.cff to Codemeta metadata format | |
uses: citation-file-format/[email protected] | |
if: success() | |
with: | |
args: "--infile ./CITATION.cff --format codemeta --outfile codemeta.json" | |
- name: Fix codemeta.json | |
if: success() | |
run: | | |
cd dev && python codemeta.py | |
- name: Validate codemeta.json | |
if: success() | |
run: | | |
eossr-metadata-validator codemeta.json | |
- name: commit changes | |
uses: stefanzweifel/[email protected] | |
if: success() | |
with: | |
commit_author: GitHub Actions <[email protected]> | |
commit_message: commit metadata files | |