File tree Expand file tree Collapse file tree 1 file changed +10
-25
lines changed Expand file tree Collapse file tree 1 file changed +10
-25
lines changed Original file line number Diff line number Diff line change 1
- name : Sync docs from Discourse
1
+ # Copyright 2024 Canonical Ltd.
2
+ # See LICENSE file for licensing details.
3
+ name : Sync Discourse docs
2
4
3
5
on :
4
6
workflow_dispatch :
5
7
schedule :
6
- - cron : ' 53 0 * * *' # Daily at 00:53 UTC
7
- push :
8
- branches :
9
- - main
8
+ - cron : ' 53 0 * * *' # Daily at 00:53 UTC
10
9
11
10
jobs :
12
11
sync-docs :
13
- name : Open PR with docs changes
14
- runs-on : ubuntu-latest
12
+ name : Sync docs from Discourse
13
+ uses :
canonical/data-platform-workflows/.github/workflows/[email protected]
14
+ with :
15
+ reviewers : a-velasco,izmalk
15
16
permissions :
16
- contents : write # Needed to login to Discourse
17
- pull-requests : write # Need to create PR
18
- steps :
19
- - uses : actions/checkout@v4
20
- - name : Open PR with docs changes
21
- uses : canonical/discourse-gatekeeper@main
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 }}'
17
+ contents : write # Needed to push branch & tag
18
+ pull-requests : write # Needed to create PR
You can’t perform that action at this time.
0 commit comments