Skip to content

Commit

Permalink
Update sync_docs.yaml (#455)
Browse files Browse the repository at this point in the history
* Update sync_docs.yaml

* Remove docs folder to avoid gatekeeper conflicts
  • Loading branch information
a-velasco authored Jul 5, 2024
1 parent a0f9999 commit 7b438e9
Show file tree
Hide file tree
Showing 51 changed files with 10 additions and 3,069 deletions.
34 changes: 10 additions & 24 deletions .github/workflows/sync_docs.yaml
Original file line number Diff line number Diff line change
@@ -1,33 +1,19 @@
# Copyright 2024 Canonical Ltd.
# See LICENSE file for licensing details.
name: Sync docs from Discourse

on:
workflow_dispatch:
schedule:
- cron: '53 0 * * *' # Daily at 00:53 UTC
push:
branches:
- main
- cron: 00 00 * * *

jobs:
sync-docs:
name: Open PR with docs changes
runs-on: ubuntu-latest
name: Sync docs from Discourse
uses: canonical/data-platform-workflows/.github/workflows/_sync_docs.yaml@main
secrets:
discourse-api-user: ${{ secrets.DISCOURSE_API_USERNAME }}
discourse-api-key: ${{ secrets.DISCOURSE_API_KEY }}
permissions:
contents: write # Needed to login to Discourse
pull-requests: write # Need to create PR
steps:
- uses: actions/checkout@v4
- name: Open PR with docs changes
uses: deusebio/discourse-gatekeeper@c8adb89ea1cbceca54d78da798658373615487ac
id: docs-pr
with:
discourse_host: discourse.charmhub.io
discourse_api_username: ${{ secrets.DISCOURSE_API_USERNAME }}
discourse_api_key: ${{ secrets.DISCOURSE_API_KEY }}
github_token: ${{ secrets.GITHUB_TOKEN }}
dry_run: "true"

- name: Show migrate output
run: echo '${{ steps.docs-pr.outputs.migrate }}'
- name: Show reconcile output
run: echo '${{ steps.docs-pr.outputs.reconcile }}'
contents: write # Needed to push branch & tag
pull-requests: write # Needed to create PR
163 changes: 0 additions & 163 deletions docs/explanation/e-architecture.md

This file was deleted.

36 changes: 0 additions & 36 deletions docs/explanation/e-flowcharts.md

This file was deleted.

51 changes: 0 additions & 51 deletions docs/explanation/e-interfaces.md

This file was deleted.

Loading

0 comments on commit 7b438e9

Please sign in to comment.