Skip to content

Commit

Permalink
DPE-2805 discourse gatekeeper (#345)
Browse files Browse the repository at this point in the history
* discourse gatekeeper

* trigger fix

* sync docs run on schedule, push to main and manually

* address pr comments
  • Loading branch information
paulomach authored Nov 13, 2023
1 parent 7e3c405 commit 04de94f
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/sync_docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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 }}'

0 comments on commit 04de94f

Please sign in to comment.