-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update sync_docs.yaml * Remove docs folder to avoid gatekeeper conflicts
- Loading branch information
Showing
51 changed files
with
10 additions
and
3,069 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,19 @@ | ||
# Copyright 2024 Canonical Ltd. | ||
# See LICENSE file for licensing details. | ||
name: Sync docs from Discourse | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '53 0 * * *' # Daily at 00:53 UTC | ||
push: | ||
branches: | ||
- main | ||
- cron: 00 00 * * * | ||
|
||
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@main | ||
secrets: | ||
discourse-api-user: ${{ secrets.DISCOURSE_API_USERNAME }} | ||
discourse-api-key: ${{ secrets.DISCOURSE_API_KEY }} | ||
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: 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 }}' | ||
contents: write # Needed to push branch & tag | ||
pull-requests: write # Needed to create PR |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.