Skip to content

Commit 04c217e

Browse files
a-velascodragomirp
andauthored
Create sync_docs.yaml (#495)
* 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 <[email protected]>
1 parent 8f7ec66 commit 04c217e

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/sync_docs.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Copyright 2024 Canonical Ltd.
2+
# See LICENSE file for licensing details.
3+
name: Sync docs from Discourse
4+
5+
on:
6+
workflow_dispatch:
7+
schedule:
8+
- cron: 50 00 * * *
9+
10+
jobs:
11+
sync-docs:
12+
name: Sync docs from Discourse
13+
uses: canonical/data-platform-workflows/.github/workflows/[email protected]
14+
secrets:
15+
discourse_api_username: ${{ secrets.DISCOURSE_API_USERNAME }}
16+
discourse_api_key: ${{ secrets.DISCOURSE_API_KEY }}
17+
permissions:
18+
contents: write # Needed to push branch & tag
19+
pull-requests: write # Needed to create PR

0 commit comments

Comments
 (0)