From e4921ab06e747fb82b67e214431b009be9526e9c Mon Sep 17 00:00:00 2001 From: Martin Scheidt Date: Wed, 23 Feb 2022 10:56:31 +0100 Subject: [PATCH] added automated CITATION.cff validation via github actions --- .github/workflows/cffvalidating.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/cffvalidating.yml diff --git a/.github/workflows/cffvalidating.yml b/.github/workflows/cffvalidating.yml new file mode 100644 index 0000000..5a17242 --- /dev/null +++ b/.github/workflows/cffvalidating.yml @@ -0,0 +1,25 @@ +### github action to publish a new CITATION.cff +## +name: cffconvert + +## Controls when the workflow will run +on: + push: + paths: + - CITATION.cff + + ## Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + validate: + name: "validate" + runs-on: ubuntu-latest + steps: + - name: Check out a copy of the repository + uses: actions/checkout@v2 + + - name: Validate a CITATION.cff from a subdirectory + uses: citation-file-format/cffconvert-github-action@2.0.0 + with: + args: "--infile ./CITATION.cff --validate" \ No newline at end of file