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"