Skip to content

Sync wiki to doc

Sync wiki to doc #2

name: Sync wiki to doc
on:
workflow_dispatch:
env:
GIT_AUTHOR_NAME: Actionbot
GIT_AUTHOR_EMAIL: actions@github.com
jobs:
job-sync-wiki-to-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
with:
token: ${{ secrets.TOKEN_FOR_WIKI }} # allows us to push back to repo
ref: ${{ github.ref_name }}
- name: Sync Wiki to Docs
uses: newrelic/wiki-sync-action@main
with:
source: wiki
destination: doc/wiki
token: ${{ secrets.TOKEN_FOR_WIKI }}
gitAuthorName: ${{ env.GIT_AUTHOR_NAME }}
gitAuthorEmail: ${{ env.GIT_AUTHOR_EMAIL }}
branch: ${{ github.ref_name }}