Sync docs from Discourse #246
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: '53 0 * * *' # Daily at 00:53 UTC | |
push: | |
branches: | |
- main | |
jobs: | |
sync-docs: | |
name: Open PR with docs changes | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write # Needed to login to Discourse | |
pull-requests: write # Need to create PR | |
steps: | |
- uses: actions/checkout@v3 | |
- 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 }}' |