Skip to content

Commit

Permalink
Update sync_docs.yaml (#175)
Browse files Browse the repository at this point in the history
A [new `sync_docs.yaml`
workflow](canonical/data-platform-workflows#220)
was released in data-platform-workflows `v19.2.0`. It overwrites the old
experimental `_sync_docs.yaml` workflow and releases it to the public
interface.

This PR:
* Corrects the filename to match the new syntax without the experimental
`_` prefix.
* Removes the now unnecessary Discourse API credentials
* Adds automatic reviewers
  • Loading branch information
a-velasco authored Sep 9, 2024
1 parent 2816e5f commit 04c7b3a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/sync_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@ name: Sync docs from Discourse
on:
workflow_dispatch:
schedule:
- cron: 40 00 * * *
- cron: '53 0 * * *' # Daily at 00:53 UTC

jobs:
sync-docs:
name: Sync docs from Discourse
uses: canonical/data-platform-workflows/.github/workflows/[email protected]
secrets:
discourse-api-user: ${{ secrets.DISCOURSE_API_USERNAME }}
discourse-api-key: ${{ secrets.DISCOURSE_API_KEY }}
uses: canonical/data-platform-workflows/.github/workflows/[email protected]
with:
reviewers: a-velasco
permissions:
contents: write # Needed to push branch & tag
pull-requests: write # Needed to create PR

0 comments on commit 04c7b3a

Please sign in to comment.