Skip to content

Commit

Permalink
Create sync_docs.yaml (canonical#495)
Browse files Browse the repository at this point in the history
* Create sync_docs.yaml

Adding a new workflow for pulling docs from Discourse whenever a branch is pushed to main.

Uses data-platform-workflows.

* Removed workflow trigger on push

---------

Co-authored-by: Dragomir Penev <dragomir.penev@canonical.com>
  • Loading branch information
a-velasco and dragomirp committed Jun 7, 2024
1 parent 8f7ec66 commit 04c217e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/sync_docs.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 04c217e

Please sign in to comment.