From dae90170257ca0d996f60856035494da536974bf Mon Sep 17 00:00:00 2001 From: Naomi Pentrel <5212232+npentrel@users.noreply.github.com> Date: Fri, 22 Nov 2024 11:21:03 +0100 Subject: [PATCH] Add inkeep source sync (#3696) --- .github/workflows/inkeep.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/inkeep.yml diff --git a/.github/workflows/inkeep.yml b/.github/workflows/inkeep.yml new file mode 100644 index 0000000000..fe34f5cf22 --- /dev/null +++ b/.github/workflows/inkeep.yml @@ -0,0 +1,34 @@ +name: Inkeep Source Sync + +on: + push: + branches: + - main + paths: + - "docs/**" + +jobs: + syncSourceJob: + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Check for changes + uses: dorny/paths-filter@v2 + id: changes + with: + filters: | + docs: + - 'docs/**' + - name: Sync Source + if: steps.changes.outputs.docs == 'true' + uses: inkeep/pr-commenter-action@v10 + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + with: + apiKey: ${{secrets.INKEEP_API_KEY}} + sourceId: "clypy5hlo01s28t764vzyijq5"