From 8b9598a3eab93fde1b8335a7d51cfb413517702b Mon Sep 17 00:00:00 2001 From: Andreia Velasco Date: Thu, 4 Jul 2024 15:32:42 +0200 Subject: [PATCH] Create sync_docs.yaml (#277) --- .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 000000000..4290a14ad --- /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: 30 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