From 8ecbf40480f79f2c64640ba67722ffdc60af844d Mon Sep 17 00:00:00 2001 From: Abel Soares Siqueira Date: Mon, 7 Feb 2022 12:23:07 +0100 Subject: [PATCH 1/5] Add cffconvert.yml to validate CITATION.cff --- .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 0000000000000..707a71c4b20fe --- /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@v2 + + - 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 07f8fe1e351de505a7ade8760afbb07e608fe85b Mon Sep 17 00:00:00 2001 From: Abel Soares Siqueira Date: Mon, 7 Feb 2022 14:24:58 +0100 Subject: [PATCH 2/5] Fix CITATION.cff --- CITATION.cff | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CITATION.cff b/CITATION.cff index a25d61b69d849..c88727bcfa311 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -37,4 +37,4 @@ preferred-citation: issue: 1 year: 2017 publisher: - - name: "SIAM" + name: "SIAM" From abd7f502858c64de9bbe110a3d69b95960b6cb62 Mon Sep 17 00:00:00 2001 From: Abel Soares Siqueira Date: Tue, 8 Feb 2022 09:33:00 +0100 Subject: [PATCH 3/5] Remove unneeded permissions of GitHub action that validates CITATION.cff --- .github/workflows/cffconvert.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/cffconvert.yml b/.github/workflows/cffconvert.yml index 707a71c4b20fe..c5eb8404bbbf9 100644 --- a/.github/workflows/cffconvert.yml +++ b/.github/workflows/cffconvert.yml @@ -5,6 +5,9 @@ on: paths: - CITATION.cff +permissions: + contents: read + jobs: validate: name: "validate" @@ -12,6 +15,8 @@ jobs: steps: - name: Check out a copy of the repository uses: actions/checkout@v2 + 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 From 9ed8ab6aa0bc6cd68057757aed1c51212864a5c9 Mon Sep 17 00:00:00 2001 From: Abel Soares Siqueira Date: Thu, 10 Feb 2022 09:14:53 +0100 Subject: [PATCH 4/5] Run cffconvert.yml on pull requests and specify branches --- .github/workflows/cffconvert.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/cffconvert.yml b/.github/workflows/cffconvert.yml index c5eb8404bbbf9..398b888004f37 100644 --- a/.github/workflows/cffconvert.yml +++ b/.github/workflows/cffconvert.yml @@ -2,6 +2,15 @@ name: cffconvert on: push: + branches: + - 'master' + - 'release-*' + paths: + - CITATION.cff + pull_request: + branches: + - 'master' + - 'release-*' paths: - CITATION.cff From 7f0a922268701b8f870bcf87733a5ce065a68157 Mon Sep 17 00:00:00 2001 From: Abel Soares Siqueira Date: Thu, 10 Feb 2022 09:23:49 +0100 Subject: [PATCH 5/5] Fork | No change to CFF --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index b48c7092df848..1996c569f2147 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +# No change to CFF in this fork +