From 37b9c96b258ef13a4977155c03f9a9ddc1e3a152 Mon Sep 17 00:00:00 2001 From: Paulo Machado Date: Fri, 10 Nov 2023 05:23:15 -0300 Subject: [PATCH] standardized doc syncing --- .../workflows/{sync_discourse.yaml => sync_docs.yaml} | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) rename .github/workflows/{sync_discourse.yaml => sync_docs.yaml} (76%) 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 }}' -