summaryrefslogtreecommitdiff
path: root/.github/workflows/documentation.yaml
blob: 91f611f928776c2be7c7843a803f4fa5a320aa44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
name: Check that the README is up to date

on:
  pull_request:
  push:

jobs:
  latest:
    runs-on: ubuntu-latest
    steps:
      - name: Checking out the code
        uses: actions/checkout@v3
      - run: |
          for function in $(find include/ -type f -exec sed -n 's/^_FORTIFY_FN(\([^)]\+\)).*/\1/p' '{}' ';' | sort | uniq)
          do
          	grep "\`$function\`" README.md || (echo "Please add \`$function\` to the README.md file." && exit 1)
          done