diff --git a/.github/workflows/sync_discourse.yaml b/.github/workflows/sync_docs.yaml similarity index 76% rename from .github/workflows/sync_discourse.yaml rename to .github/workflows/sync_docs.yaml index 6e9cd4c25..4db80d11b 100644 --- a/.github/workflows/sync_discourse.yaml +++ b/.github/workflows/sync_docs.yaml @@ -4,16 +4,21 @@ 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: canonical/upload-charm-docs@main + uses: deusebio/discourse-gatekeeper@c8adb89ea1cbceca54d78da798658373615487ac id: docs-pr with: discourse_host: discourse.charmhub.io @@ -26,4 +31,3 @@ jobs: run: echo '${{ steps.docs-pr.outputs.migrate }}' - name: Show reconcile output run: echo '${{ steps.docs-pr.outputs.reconcile }}' -