From 077cb5bc8f50cb29dc73e8e65f0057e0e962bd4b Mon Sep 17 00:00:00 2001 From: Maximilian Horzela <33454678+HerrHorizontal@users.noreply.github.com> Date: Sun, 29 Sep 2024 16:45:55 +0200 Subject: [PATCH 1/3] Create cffconvert workflow --- .github/workflows/cffconvert.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/cffconvert.yml diff --git a/.github/workflows/cffconvert.yml b/.github/workflows/cffconvert.yml new file mode 100644 index 0000000..7144363 --- /dev/null +++ b/.github/workflows/cffconvert.yml @@ -0,0 +1,19 @@ +name: cffconvert + +on: + push: + paths: + - CITATION.cff + +jobs: + validate: + name: "validate" + runs-on: ubuntu-latest + steps: + - 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/cffconvert-github-action@2.0.0 + with: + args: "--validate" From 7ff0f22dc549996390f8014252a9c021ed580316 Mon Sep 17 00:00:00 2001 From: Maximilian Horzela <33454678+HerrHorizontal@users.noreply.github.com> Date: Sun, 29 Sep 2024 16:48:12 +0200 Subject: [PATCH 2/3] trigger on tag creation --- .github/workflows/cffconvert.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cffconvert.yml b/.github/workflows/cffconvert.yml index 7144363..a0847cf 100644 --- a/.github/workflows/cffconvert.yml +++ b/.github/workflows/cffconvert.yml @@ -2,8 +2,9 @@ name: cffconvert on: push: - paths: - - CITATION.cff + tags: + - '*' + - '**' jobs: validate: From 6b7897abf931b24683f0b110f9b203a3e18b2285 Mon Sep 17 00:00:00 2001 From: Maximilian Horzela <33454678+HerrHorizontal@users.noreply.github.com> Date: Mon, 30 Sep 2024 11:21:22 +0200 Subject: [PATCH 3/3] Name validation action --- .github/workflows/cffconvert.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cffconvert.yml b/.github/workflows/cffconvert.yml index a0847cf..bc39d6f 100644 --- a/.github/workflows/cffconvert.yml +++ b/.github/workflows/cffconvert.yml @@ -8,7 +8,7 @@ on: jobs: validate: - name: "validate" + name: "validate CITATION.cff" runs-on: ubuntu-latest steps: - name: Check out a copy of the repository