Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update sync_docs.yaml #300

Merged
merged 10 commits into from
Aug 27, 2024
Merged
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 10 additions & 25 deletions .github/workflows/sync_docs.yaml
Original file line number Diff line number Diff line change
@@ -1,33 +1,18 @@
name: Sync docs from Discourse
# Copyright 2024 Canonical Ltd.
# See LICENSE file for licensing details.
name: Sync Discourse docs

on:
workflow_dispatch:
schedule:
- cron: '53 0 * * *' # Daily at 00:53 UTC
push:
branches:
a-velasco marked this conversation as resolved.
Show resolved Hide resolved
- main
- cron: '53 0 * * *' # Daily at 00:53 UTC

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@v19.2.0
with:
reviewers: canonical/data-platform-technical-authors,octocat
permissions:
a-velasco marked this conversation as resolved.
Show resolved Hide resolved
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: canonical/discourse-gatekeeper@main
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
Loading