From 4f58e83b35b3cf289ba539e24f5a3cf62f4f6e51 Mon Sep 17 00:00:00 2001 From: Andreia Velasco Date: Thu, 4 Jul 2024 13:33:23 +0200 Subject: [PATCH] Create sync_docs.yaml --- .github/workflows/sync_docs.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/sync_docs.yaml diff --git a/.github/workflows/sync_docs.yaml b/.github/workflows/sync_docs.yaml new file mode 100644 index 0000000000..7cf2ccfa28 --- /dev/null +++ b/.github/workflows/sync_docs.yaml @@ -0,0 +1,19 @@ +# Copyright 2024 Canonical Ltd. +# See LICENSE file for licensing details. +name: Sync docs from Discourse + +on: + workflow_dispatch: + schedule: + - cron: 00 01 * * * + +jobs: + sync-docs: + name: Sync docs from Discourse + uses: canonical/data-platform-workflows/.github/workflows/_sync_docs.yaml@main + secrets: + discourse-api-user: ${{ secrets.DISCOURSE_API_USERNAME }} + discourse-api-key: ${{ secrets.DISCOURSE_API_KEY }} + permissions: + contents: write # Needed to push branch & tag + pull-requests: write # Needed to create PR