Add a GitHub Actions workflow for automatic validation of the citation metadata file (CITATION.CFF
)
#4
Workflow file for this run
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: | |
branches: | |
- 'master' | |
- 'release-*' | |
paths: | |
- CITATION.cff | |
pull_request: | |
branches: | |
- 'master' | |
- 'release-*' | |
paths: | |
- CITATION.cff | |
permissions: | |
contents: read | |
jobs: | |
validate: | |
name: "validate" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out a copy of the repository | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Check whether the citation metadata from CITATION.cff is valid | |
uses: citation-file-format/cffconvert-github-action@2.0.0 | |
with: | |
args: "--validate" |