Skip to content

Merge pull request #26 from input-output-hk/newhoggy/update-link #40

Merge pull request #26 from input-output-hk/newhoggy/update-link

Merge pull request #26 from input-output-hk/newhoggy/update-link #40

Workflow file for this run

name: Documentation
on:
push:
branches:
- main
paths:
- "docs/**"
repository_dispatch:
types: [docs]
gollum:
workflow_dispatch:
env:
GIT_AUTHOR_NAME: cardano-node-wiki
GIT_AUTHOR_EMAIL: [email protected]
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.WIKI_SYNC_GITHUB_TOKEN }}
gitAuthorName: ${{ env.GIT_AUTHOR_NAME }}
gitAuthorEmail: ${{ env.GIT_AUTHOR_EMAIL }}
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.WIKI_SYNC_GITHUB_TOKEN }}
ref: main
- name: Sync Wiki to Docs
uses: newrelic/wiki-sync-action@main
with:
source: wiki
destination: docs
token: ${{ secrets.WIKI_SYNC_GITHUB_TOKEN }}
gitAuthorName: ${{ env.GIT_AUTHOR_NAME }}
gitAuthorEmail: ${{ env.GIT_AUTHOR_EMAIL }}
branch: main