From ac7623e0c3859a885e87b0c20f9b4629dfe56524 Mon Sep 17 00:00:00 2001 From: Ibrahim Rahhal Date: Wed, 18 Feb 2026 17:57:55 +0300 Subject: [PATCH] Add workflow to sync AI documentation on PR merge --- .github/workflows/update_docs..yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/update_docs..yml diff --git a/.github/workflows/update_docs..yml b/.github/workflows/update_docs..yml new file mode 100644 index 0000000..1719611 --- /dev/null +++ b/.github/workflows/update_docs..yml @@ -0,0 +1,27 @@ +name: Trigger AI Docs Sync on PR Merge + +on: + pull_request: + types: [closed] + +jobs: + run-codex-docs-sync: + if: github.event.pull_request.merged == true + runs-on: ubuntu-latest + steps: + - name: Checkout source repository + uses: actions/checkout@v4 + + - name: Run AI Docs Sync + uses: Corgea/internal_actions/sync-docs-action@main + with: + token: ${{ secrets.DOCS_REPO_TOKEN }} + base_sha: ${{ github.event.pull_request.base.sha }} + head_sha: ${{ github.event.pull_request.head.sha }} + openai_api_key: ${{ secrets.OPENAI_API_KEY }} + docs_repo_token: ${{ secrets.DOCS_REPO_TOKEN }} + docs_repo: "Corgea/docs" + docs_base_branch: "main" + pr_info: | + PR Title: ${{ github.event.pull_request.title }} + PR Description: ${{ github.event.pull_request.body }}