Sync docs from Discourse #497
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sync docs from Discourse | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '33 0 * * *' # Daily at 00:53 UTC | |
# Triggered on push to branch "main" by .github/workflows/release.yaml | |
workflow_call: | |
jobs: | |
sync-docs: | |
name: Open PR with docs changes | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- 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 }}' |