diff --git a/.github/workflows/sync_docs.yaml b/.github/workflows/sync_docs.yaml new file mode 100644 index 0000000000..0aff736393 --- /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: 50 00 * * * + +jobs: + sync-docs: + name: Sync docs from Discourse + uses: canonical/data-platform-workflows/.github/workflows/_sync_docs.yaml@v13.3.0 + secrets: + discourse_api_username: ${{ 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