Skip to content

Commit 7b438e9

Browse files
authored
Update sync_docs.yaml (#455)
* Update sync_docs.yaml * Remove docs folder to avoid gatekeeper conflicts
1 parent a0f9999 commit 7b438e9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+10
-3069
lines changed

.github/workflows/sync_docs.yaml

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,19 @@
1+
# Copyright 2024 Canonical Ltd.
2+
# See LICENSE file for licensing details.
13
name: Sync docs from Discourse
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: 00 00 * * *
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/_sync_docs.yaml@main
14+
secrets:
15+
discourse-api-user: ${{ secrets.DISCOURSE_API_USERNAME }}
16+
discourse-api-key: ${{ secrets.DISCOURSE_API_KEY }}
1517
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: 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 }}'
18+
contents: write # Needed to push branch & tag
19+
pull-requests: write # Needed to create PR

docs/explanation/e-architecture.md

Lines changed: 0 additions & 163 deletions
This file was deleted.

docs/explanation/e-flowcharts.md

Lines changed: 0 additions & 36 deletions
This file was deleted.

docs/explanation/e-interfaces.md

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)