From 8cadbc171616c05f3090c32dae7786686fb01249 Mon Sep 17 00:00:00 2001 From: "Diogo C. Cabanas" Date: Tue, 3 Mar 2026 09:43:39 +0100 Subject: [PATCH 1/4] chore: add workflow check for README updates --- .github/workflows/update-readme.yml | 44 +++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/update-readme.yml diff --git a/.github/workflows/update-readme.yml b/.github/workflows/update-readme.yml new file mode 100644 index 0000000..ec02366 --- /dev/null +++ b/.github/workflows/update-readme.yml @@ -0,0 +1,44 @@ +name: Update README.md + +on: + pull_request: + paths: + - "markdown/README.md" + - "markdown/references.bib" + - "markdown/apa.csl" + - "update-readme.sh" + - ".github/workflows/update-readme.yml" + push: + branches: ["main"] + paths: + - "markdown/README.md" + - "markdown/references.bib" + - "markdown/apa.csl" + - "update-readme.sh" + - ".github/workflows/update-readme.yml" + +permissions: + contents: read + +jobs: + generate-readme: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install Pandoc + uses: pandoc/actions/setup@v1 + with: + version: "3.1.13" + + - name: Run README update script + run: bash update-readme.sh + + - name: Check if README.md is up to date + run: | + if ! git diff --exit-code -- README.md; then + echo "README.md is out of date. Run update-readme.sh and re-commit the result." + git --no-pager diff -- README.md + exit 1 + fi From 98788f9fd09afd9bacee48df8f2f73c2871fd1ac Mon Sep 17 00:00:00 2001 From: "Diogo C. Cabanas" Date: Tue, 3 Mar 2026 10:20:12 +0100 Subject: [PATCH 2/4] chore: test workflow --- markdown/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/markdown/README.md b/markdown/README.md index 8d565f3..668792d 100644 --- a/markdown/README.md +++ b/markdown/README.md @@ -8,6 +8,8 @@ In this repository you can an archive of the use of 'Mantis' across research pub Each branch is dedicated to one of these publications, and the current branch, `main`, provides a list of links for all branches. +Hey + If you whish to look at all publications, you can run `git clone https://github.com/MantisFEM/Research.git`, or to check out a single publication, under branch `name/of/publication` you can run `git clone --single-branch From ed9538983cb3ac3eb7720b601eac2b4998ef1a0e Mon Sep 17 00:00:00 2001 From: "Diogo C. Cabanas" Date: Tue, 3 Mar 2026 10:22:58 +0100 Subject: [PATCH 3/4] chore: test workflow --- .github/workflows/update-readme.yml | 5 ++--- markdown/README.md | 2 -- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/update-readme.yml b/.github/workflows/update-readme.yml index ec02366..30ce177 100644 --- a/.github/workflows/update-readme.yml +++ b/.github/workflows/update-readme.yml @@ -21,7 +21,7 @@ permissions: contents: read jobs: - generate-readme: + update-readme: runs-on: ubuntu-latest steps: - name: Checkout @@ -38,7 +38,6 @@ jobs: - name: Check if README.md is up to date run: | if ! git diff --exit-code -- README.md; then - echo "README.md is out of date. Run update-readme.sh and re-commit the result." - git --no-pager diff -- README.md + echo -e "\nREADME.md is out of date. Run update-readme.sh and re-commit the result." exit 1 fi diff --git a/markdown/README.md b/markdown/README.md index 668792d..8d565f3 100644 --- a/markdown/README.md +++ b/markdown/README.md @@ -8,8 +8,6 @@ In this repository you can an archive of the use of 'Mantis' across research pub Each branch is dedicated to one of these publications, and the current branch, `main`, provides a list of links for all branches. -Hey - If you whish to look at all publications, you can run `git clone https://github.com/MantisFEM/Research.git`, or to check out a single publication, under branch `name/of/publication` you can run `git clone --single-branch From 503d614240a0856c121325b88671070041f4b277 Mon Sep 17 00:00:00 2001 From: "Diogo C. Cabanas" Date: Tue, 3 Mar 2026 10:23:42 +0100 Subject: [PATCH 4/4] chore: test workflow --- markdown/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/markdown/README.md b/markdown/README.md index 8d565f3..3a8e4f4 100644 --- a/markdown/README.md +++ b/markdown/README.md @@ -8,6 +8,8 @@ In this repository you can an archive of the use of 'Mantis' across research pub Each branch is dedicated to one of these publications, and the current branch, `main`, provides a list of links for all branches. +Fail + If you whish to look at all publications, you can run `git clone https://github.com/MantisFEM/Research.git`, or to check out a single publication, under branch `name/of/publication` you can run `git clone --single-branch