Assert Reference Manual generated content is in sync with template
#15
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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: | |
| fetch-depth: 0 | |
| # https://github.com/orgs/community/discussions/24945#discussioncomment-3245946 | |
| - name: Checkout PR | |
| run: gh pr checkout ${{ github.event.pull_request.number }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: debug | |
| run: | |
| echo "a" > Reference_Manual.md | |
| #- uses: ./.github/actions/build-test/ubuntu-x86_64 | |
| # with: | |
| # GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # BOOST_VERSION: 1.89.0 | |
| # THRIFT_VERSION: 0.13.0 | |
| # BUILD_TYPE: Release | |
| # SHARED_LIBS_TOGGLE: ON | |
| # OPENSSL_TOGGLE: OFF | |
| # RUN_TESTS: false | |
| # HAZELCAST_ENTERPRISE_KEY: | |
| # AWS_ACCESS_KEY_ID: | |
| # AWS_SECRET_ACCESS_KEY: | |
| # HZ_TEST_AWS_INSTANCE_PRIVATE_IP: | |
| - 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 commit -m "Regenerate reference manual from template" || true | |
| git push |