Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/update-readme.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
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:
update-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 -e "\nREADME.md is out of date. Run update-readme.sh and re-commit the result."
exit 1
fi
2 changes: 2 additions & 0 deletions markdown/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading