Skip to content

Commit 240ad96

Browse files
authored
DPE-2806 discourse gatekeeper (#85)
Port of k8s [PR#306](canonical/mysql-k8s-operator#306)
1 parent b20eaf2 commit 240ad96

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/sync_docs.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Sync docs from Discourse
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '53 0 * * *' # Daily at 00:53 UTC
7+
push:
8+
branches:
9+
- main
10+
11+
jobs:
12+
sync-docs:
13+
name: Open PR with docs changes
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: write # Needed to login to Discourse
17+
pull-requests: write # Need to create PR
18+
steps:
19+
- uses: actions/checkout@v3
20+
- name: Open PR with docs changes
21+
uses: deusebio/discourse-gatekeeper@c8adb89ea1cbceca54d78da798658373615487ac
22+
id: docs-pr
23+
with:
24+
discourse_host: discourse.charmhub.io
25+
discourse_api_username: ${{ secrets.DISCOURSE_API_USERNAME }}
26+
discourse_api_key: ${{ secrets.DISCOURSE_API_KEY }}
27+
github_token: ${{ secrets.GITHUB_TOKEN }}
28+
dry_run: "true"
29+
30+
- name: Show migrate output
31+
run: echo '${{ steps.docs-pr.outputs.migrate }}'
32+
- name: Show reconcile output
33+
run: echo '${{ steps.docs-pr.outputs.reconcile }}'

0 commit comments

Comments
 (0)