fortify-headers

standalone fortify-source implementation
git clone git://git.2f30.org/fortify-headers
Log | Files | Refs | README | LICENSE

documentation.yaml (475B)


      1 name: Check that the README is up to date
      2 
      3 on:
      4   pull_request:
      5   push:
      6 
      7 jobs:
      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