diff --git a/.github/workflows/wiki_sync.yml b/.github/workflows/wiki_sync.yml new file mode 100644 index 0000000..0c6326b --- /dev/null +++ b/.github/workflows/wiki_sync.yml @@ -0,0 +1,42 @@ +name: Documentation + +on: + push: + branches: + - main + paths: + - "docs/**" + repository_dispatch: + types: [docs] + gollum: + +jobs: + job-sync-docs-to-wiki: + runs-on: ubuntu-latest + if: github.event_name != 'gollum' + steps: + - name: Checkout Repo + uses: actions/checkout@v2 + - name: Sync docs to wiki + uses: newrelic/wiki-sync-action@main + with: + source: docs + destination: wiki + token: ${{ secrets.GITHUB_TOKEN }} + + job-sync-wiki-to-docs: + runs-on: ubuntu-latest + if: github.event_name == 'gollum' + steps: + - name: Checkout Repo + uses: actions/checkout@v2 + with: + token: ${{ secrets.GITHUB_TOKEN }} # allows us to push back to repo + ref: main + - name: Sync Wiki to Docs + uses: newrelic/wiki-sync-action@main + with: + source: wiki + destination: docs + token: ${{ secrets.GITHUB_TOKEN }} + branch: main \ No newline at end of file diff --git a/docs/index.md b/docs/index.md new file mode 100644 index 0000000..e69de29