Skip to content

Trigger workflow when merged PR #4

Trigger workflow when merged PR

Trigger workflow when merged PR #4

name: Copy doc to wiki
on:
workflow_dispatch:
pull_request_target:
types:
- closed
env:
GIT_AUTHOR_NAME: Actionbot
GIT_AUTHOR_EMAIL: actions@github.com
jobs:
job-copy-doc-to-wiki:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Copy doc to wiki
uses: newrelic/wiki-sync-action@main
with:
source: doc/wiki
destination: wiki
token: ${{ secrets.TOKEN_FOR_WIKI }}
gitAuthorName: ${{ env.GIT_AUTHOR_NAME }}
gitAuthorEmail: ${{ env.GIT_AUTHOR_EMAIL }}