Skip to content

Assert Reference Manual generated content is in sync with template #1

Assert Reference Manual generated content is in sync with template

Assert Reference Manual generated content is in sync with template #1

name: Check and Regenerate Reference Manual
on:
pull_request:
#paths:
# Deliberately overwrite manual modifications
#- 'Reference_Manual.md'
#- 'Reference_Manual.md.in'
# When the version changes
#- 'CMakeLists.txt'
jobs:
regenerate-manual:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
#with:
#token: ${{ secrets.GITHUB_TOKEN }}
#ref: ${{ github.head_ref }}
- uses: lukka/get-cmake@latest
- name: Regenerate
run: |
cmake .
- name: Commit
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git add Reference_Manual.md
git push
git commit -m "Regenerate reference manual from template"
git push