From 51d93b9c0cda4f687138589db0d44c0f949f8755 Mon Sep 17 00:00:00 2001 From: Andreia Velasco Date: Mon, 12 Aug 2024 15:06:58 +0200 Subject: [PATCH 01/10] Update sync_docs.yaml --- .github/workflows/sync_docs.yaml | 35 +++++++++----------------------- 1 file changed, 10 insertions(+), 25 deletions(-) diff --git a/.github/workflows/sync_docs.yaml b/.github/workflows/sync_docs.yaml index ca6b03804..79d7e26ac 100644 --- a/.github/workflows/sync_docs.yaml +++ b/.github/workflows/sync_docs.yaml @@ -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: - - 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@download-discourse-topics + with: + reviewers: a-velasco,octocat permissions: - 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 From 5785cc13b32c495e202bf7b3924427d83f29741d Mon Sep 17 00:00:00 2001 From: Andreia Velasco Date: Mon, 12 Aug 2024 15:13:30 +0200 Subject: [PATCH 02/10] Update automatic reviewers --- .github/workflows/sync_docs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync_docs.yaml b/.github/workflows/sync_docs.yaml index 79d7e26ac..6c0d38867 100644 --- a/.github/workflows/sync_docs.yaml +++ b/.github/workflows/sync_docs.yaml @@ -12,7 +12,7 @@ jobs: name: Sync docs from Discourse uses: canonical/data-platform-workflows/.github/workflows/sync_docs.yaml@download-discourse-topics with: - reviewers: a-velasco,octocat + reviewers: canonical/data-platform-technical-authors,octocat permissions: contents: write # Needed to push branch & tag pull-requests: write # Needed to create PR From 90e5585c118a986e1d6413cb47062a54853188d6 Mon Sep 17 00:00:00 2001 From: Andreia Velasco Date: Mon, 12 Aug 2024 17:42:02 +0200 Subject: [PATCH 03/10] Update workflow version --- .github/workflows/sync_docs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync_docs.yaml b/.github/workflows/sync_docs.yaml index 6c0d38867..aea6c96d8 100644 --- a/.github/workflows/sync_docs.yaml +++ b/.github/workflows/sync_docs.yaml @@ -10,7 +10,7 @@ on: jobs: sync-docs: name: Sync docs from Discourse - uses: canonical/data-platform-workflows/.github/workflows/sync_docs.yaml@download-discourse-topics + uses: canonical/data-platform-workflows/.github/workflows/sync_docs.yaml@v.19.1.0 with: reviewers: canonical/data-platform-technical-authors,octocat permissions: From 705b28bb41b60574e528f8f83752dbb68519d061 Mon Sep 17 00:00:00 2001 From: Andreia Velasco Date: Tue, 13 Aug 2024 09:44:36 +0200 Subject: [PATCH 04/10] Update sync_docs.yaml --- .github/workflows/sync_docs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync_docs.yaml b/.github/workflows/sync_docs.yaml index aea6c96d8..dce174835 100644 --- a/.github/workflows/sync_docs.yaml +++ b/.github/workflows/sync_docs.yaml @@ -10,7 +10,7 @@ on: jobs: sync-docs: name: Sync docs from Discourse - uses: canonical/data-platform-workflows/.github/workflows/sync_docs.yaml@v.19.1.0 + uses: canonical/data-platform-workflows/.github/workflows/sync_docs.yaml@v.19.0.0 with: reviewers: canonical/data-platform-technical-authors,octocat permissions: From b32f4af2e0919dda3487d818bc6be11b1047d762 Mon Sep 17 00:00:00 2001 From: Andreia Velasco Date: Tue, 13 Aug 2024 09:56:16 +0200 Subject: [PATCH 05/10] Revert --- .github/workflows/sync_docs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync_docs.yaml b/.github/workflows/sync_docs.yaml index dce174835..727eff74b 100644 --- a/.github/workflows/sync_docs.yaml +++ b/.github/workflows/sync_docs.yaml @@ -10,7 +10,7 @@ on: jobs: sync-docs: name: Sync docs from Discourse - uses: canonical/data-platform-workflows/.github/workflows/sync_docs.yaml@v.19.0.0 + uses: canonical/data-platform-workflows/.github/workflows/sync_docs.yaml@v19.1.0 with: reviewers: canonical/data-platform-technical-authors,octocat permissions: From 7c7c6cd5b48a0a753482af420443d2eb1de0b1e7 Mon Sep 17 00:00:00 2001 From: Andreia Velasco Date: Fri, 16 Aug 2024 12:28:04 +0200 Subject: [PATCH 06/10] Update sync_docs.yaml --- .github/workflows/sync_docs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync_docs.yaml b/.github/workflows/sync_docs.yaml index 727eff74b..24d125bd1 100644 --- a/.github/workflows/sync_docs.yaml +++ b/.github/workflows/sync_docs.yaml @@ -10,7 +10,7 @@ on: jobs: sync-docs: name: Sync docs from Discourse - uses: canonical/data-platform-workflows/.github/workflows/sync_docs.yaml@v19.1.0 + uses: canonical/data-platform-workflows/.github/workflows/sync_docs.yaml@v19.2.0 with: reviewers: canonical/data-platform-technical-authors,octocat permissions: From 501bad2463eb26a59831ec7fc9ab4afc39a76576 Mon Sep 17 00:00:00 2001 From: Andreia Velasco Date: Fri, 16 Aug 2024 12:35:40 +0200 Subject: [PATCH 07/10] Update sync_docs.yaml --- .github/workflows/sync_docs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync_docs.yaml b/.github/workflows/sync_docs.yaml index 24d125bd1..fdd436cd5 100644 --- a/.github/workflows/sync_docs.yaml +++ b/.github/workflows/sync_docs.yaml @@ -12,7 +12,7 @@ jobs: 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 + reviewers: canonical/data-platform-technical-authors permissions: contents: write # Needed to push branch & tag pull-requests: write # Needed to create PR From c32596b38e9acd5a6d9090608edd9000b65be1bd Mon Sep 17 00:00:00 2001 From: Andreia Velasco Date: Fri, 16 Aug 2024 13:50:47 +0200 Subject: [PATCH 08/10] Update sync_docs.yaml --- .github/workflows/sync_docs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync_docs.yaml b/.github/workflows/sync_docs.yaml index fdd436cd5..15821dfdd 100644 --- a/.github/workflows/sync_docs.yaml +++ b/.github/workflows/sync_docs.yaml @@ -12,7 +12,7 @@ jobs: 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 + reviewers: a-velasco,izmalk permissions: contents: write # Needed to push branch & tag pull-requests: write # Needed to create PR From ca7f0f3bc15bf538f4a81513644b5a1319d70900 Mon Sep 17 00:00:00 2001 From: Andreia Velasco Date: Tue, 20 Aug 2024 14:34:34 +0200 Subject: [PATCH 09/10] Update version --- .github/workflows/sync_docs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync_docs.yaml b/.github/workflows/sync_docs.yaml index 15821dfdd..2e0851050 100644 --- a/.github/workflows/sync_docs.yaml +++ b/.github/workflows/sync_docs.yaml @@ -10,7 +10,7 @@ on: jobs: sync-docs: name: Sync docs from Discourse - uses: canonical/data-platform-workflows/.github/workflows/sync_docs.yaml@v19.2.0 + uses: canonical/data-platform-workflows/.github/workflows/sync_docs.yaml@v20.0.1 with: reviewers: a-velasco,izmalk permissions: From 11d410d07618957b87d881b9eca5b2e487901141 Mon Sep 17 00:00:00 2001 From: Andreia Velasco Date: Tue, 27 Aug 2024 15:55:22 +0200 Subject: [PATCH 10/10] Update sync_docs.yaml to v21 --- .github/workflows/sync_docs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync_docs.yaml b/.github/workflows/sync_docs.yaml index 2e0851050..b92c7c4f3 100644 --- a/.github/workflows/sync_docs.yaml +++ b/.github/workflows/sync_docs.yaml @@ -10,7 +10,7 @@ on: jobs: sync-docs: name: Sync docs from Discourse - uses: canonical/data-platform-workflows/.github/workflows/sync_docs.yaml@v20.0.1 + uses: canonical/data-platform-workflows/.github/workflows/sync_docs.yaml@v21.0.0 with: reviewers: a-velasco,izmalk permissions: