From ec77e7027528b36b43b06aaa49715f4bdbfe345a Mon Sep 17 00:00:00 2001 From: Fabian Rodriguez Date: Mon, 5 Aug 2024 12:03:32 +0200 Subject: [PATCH] Add action that syncs the docs repo --- .github/workflows/sync-docs.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/sync-docs.yml diff --git a/.github/workflows/sync-docs.yml b/.github/workflows/sync-docs.yml new file mode 100644 index 0000000..4910bcf --- /dev/null +++ b/.github/workflows/sync-docs.yml @@ -0,0 +1,26 @@ +name: Sync Docs +on: + workflow_dispatch: + inputs: {} + repository_dispatch: + types: [DOCS_UPDATED] + +permissions: + contents: write + pull-requests: write + +jobs: + submodule-sync: + name: Submodule Sync + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - name: Submodule Sync + uses: mheap/submodule-sync-action@v1 + with: + token: ${{ secrets.PAT }} + path: ./docs.konghq.com + ref: i18n-spike + pr_branch: automated-docs-update + base_branch: main + target_branch: main