File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
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 }}'
You can’t perform that action at this time.
0 commit comments