From b84f8002d644042e45bb77932e551215b2a63987 Mon Sep 17 00:00:00 2001 From: MOHAMMAD TORABI <72619172+mtorabi59@users.noreply.github.com> Date: Thu, 11 Jan 2024 16:23:05 +0330 Subject: [PATCH] Create validate_cff.yml --- .github/workflows/validate_cff.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/validate_cff.yml diff --git a/.github/workflows/validate_cff.yml b/.github/workflows/validate_cff.yml new file mode 100644 index 0000000..9efe394 --- /dev/null +++ b/.github/workflows/validate_cff.yml @@ -0,0 +1,24 @@ +--- +name: validate CITATION.cff + +on: + push: + branches: ['*'] + paths: + - CITATION.cff + - .github/workflows/validate_cff.yml + pull_request: + branches: ['*'] + paths: + - CITATION.cff + - .github/workflows/validate_cff.yml + +jobs: + validate_cff: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Check whether the citation metadata from CITATION.cff is valid + uses: citation-file-format/cffconvert-github-action@2.0.0 + with: + args: --validate