Skip to content

Commit 27a5975

Browse files
authored
Update sync_docs.yaml (#300)
This PR changes the `sync_docs.yaml` workflow to the [new version with a different backend](canonical/data-platform-workflows#220 (comment)).
1 parent 70212da commit 27a5975

File tree

1 file changed

+10
-25
lines changed

1 file changed

+10
-25
lines changed

.github/workflows/sync_docs.yaml

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,18 @@
1-
name: Sync docs from Discourse
1+
# Copyright 2024 Canonical Ltd.
2+
# See LICENSE file for licensing details.
3+
name: Sync Discourse docs
24

35
on:
46
workflow_dispatch:
57
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
109

1110
jobs:
1211
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
1516
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

0 commit comments

Comments
 (0)