Sync wiki to doc #2
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
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 }} |