summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorjvoisin2023-12-08 18:41:35 +0100
committerjvoisin2023-12-08 20:55:41 +0100
commit36d7b9197c4863c9a0113512bb566a2ee0b5d72d (patch)
treec66cabd72043b833376b6871bf5719d2c8fd639a /.github
parent58226077c22cef573ad148abca77b23e96a1b2f8 (diff)
Add a check in the CI to keep the readme up to date
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/documentation.yaml18
1 files changed, 18 insertions, 0 deletions
diff --git a/.github/workflows/documentation.yaml b/.github/workflows/documentation.yaml
new file mode 100644
index 0000000..91f611f
--- /dev/null
+++ b/.github/workflows/documentation.yaml
@@ -0,0 +1,18 @@
1name: Check that the README is up to date
2
3on:
4 pull_request:
5 push:
6
7jobs:
8 latest:
9 runs-on: ubuntu-latest
10 steps:
11 - name: Checking out the code
12 uses: actions/checkout@v3
13 - run: |
14 for function in $(find include/ -type f -exec sed -n 's/^_FORTIFY_FN(\([^)]\+\)).*/\1/p' '{}' ';' | sort | uniq)
15 do
16 grep "\`$function\`" README.md || (echo "Please add \`$function\` to the README.md file." && exit 1)
17 done
18