Skip to content

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

Assert Reference Manual generated content is in sync with template

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

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
permissions:
contents: write
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 }} --repo ${{ github.repository }}
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