summaryrefslogtreecommitdiff
path: root/.github/workflows/documentation.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/documentation.yaml')
-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