File tree 3 files changed +41
-0
lines changed
3 files changed +41
-0
lines changed Original file line number Diff line number Diff line change 53
53
- name : Run tests
54
54
run : tox run -e security
55
55
56
+ sync-docs :
57
+ uses : ./.github/workflows/sync_docs.yaml
58
+ secrets : inherit
59
+ permissions :
60
+ contents : write # Needed to update tags
61
+ pull-requests : write # Need to create PR
62
+
56
63
build :
57
64
name : Build charms
58
65
uses : canonical/data-platform-workflows/.github/workflows/build_charms_with_cache.yaml@v2
Original file line number Diff line number Diff line change 27
27
needs :
28
28
- lib-check
29
29
uses : ./.github/workflows/ci.yaml
30
+ secrets : inherit
31
+ permissions :
32
+ contents : write # Needed to login to Discourse
33
+ pull-requests : write # Need to create PR
34
+ actions : write
30
35
31
36
build :
32
37
name : Build charm
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
+ # Triggered on push to branch "main" by .github/workflows/release.yaml
8
+ workflow_call :
9
+
10
+ jobs :
11
+ sync-docs :
12
+ name : Open PR with docs changes
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - uses : actions/checkout@v3
16
+ - name : Open PR with docs changes
17
+ uses : deusebio/discourse-gatekeeper@main
18
+ id : docs-pr
19
+ with :
20
+ discourse_host : discourse.charmhub.io
21
+ discourse_api_username : ${{ secrets.DISCOURSE_API_USERNAME }}
22
+ discourse_api_key : ${{ secrets.DISCOURSE_API_KEY }}
23
+ github_token : ${{ secrets.GITHUB_TOKEN }}
24
+ dry_run : " true"
25
+
26
+ - name : Show migrate output
27
+ run : echo '${{ steps.docs-pr.outputs.migrate }}'
28
+ - name : Show reconcile output
29
+ run : echo '${{ steps.docs-pr.outputs.reconcile }}'
You can’t perform that action at this time.
0 commit comments