From 43b94eb68c6a6293f5ac0889253976f391bfb2ed Mon Sep 17 00:00:00 2001 From: Naomi Pentrel <5212232+npentrel@users.noreply.github.com> Date: Thu, 21 Nov 2024 18:02:44 +0100 Subject: [PATCH 1/2] Create main.yml --- .github/workflows/main.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000000..fe34f5cf22 --- /dev/null +++ b/.github/workflows/main.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" From cc18a30d17d02752a7ace66311f214ad003fe837 Mon Sep 17 00:00:00 2001 From: Naomi Pentrel <5212232+npentrel@users.noreply.github.com> Date: Thu, 21 Nov 2024 18:03:10 +0100 Subject: [PATCH 2/2] Rename main.yml to inkeep.yml --- .github/workflows/{main.yml => inkeep.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{main.yml => inkeep.yml} (100%) diff --git a/.github/workflows/main.yml b/.github/workflows/inkeep.yml similarity index 100% rename from .github/workflows/main.yml rename to .github/workflows/inkeep.yml