Skip to content

Merge remote-tracking branch 'upstream/master' #2

Merge remote-tracking branch 'upstream/master'

Merge remote-tracking branch 'upstream/master' #2

Workflow file for this run

name: Sync wiki documentation
on:
push:
branches:
- master
paths:
- '.github/docs/wiki/**'
repository_dispatch:
types: [docs]
gollum:
env:
REPO_PATH: '.github/docs/wiki'
WIKI_PATH: 'wiki'
GIT_USERNAME: 'github-actions[bot]'
GIT_EMAIL: '[email protected]'
GIT_COMMIT_MESSAGE: 'docs: Bidirectional sync between docs and wiki'
jobs:
sync-docs-to-wiki:
if: github.repository == 'osuAkatsuki/bancho.py' && github.event_name != 'gollum'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Push files into wiki repo
uses: newrelic/wiki-sync-action@main
with:
source: ${{ env.REPO_PATH }}
destination: ${{ env.WIKI_PATH }}
branch: master
token: ${{ secrets.BPY_REPO_TOKEN }}
gitAuthorName: ${{ env.GIT_USERNAME }}
gitAuthorEmail: ${{ env.GIT_EMAIL }}
commitMessage: ${{ env.GIT_COMMIT_MESSAGE }}
sync-wiki-to-docs:
if: github.repository == 'osuAkatsuki/bancho.py' && github.event_name == 'gollum'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
ref: master
- name: Push files into repo
uses: newrelic/wiki-sync-action@main
with:
source: ${{ env.WIKI_PATH }}
destination: ${{ env.REPO_PATH }}
branch: master
token: ${{ secrets.GITHUB_TOKEN }}
gitAuthorName: ${{ env.GIT_USERNAME }}
gitAuthorEmail: ${{ env.GIT_EMAIL }}
commitMessage: ${{ env.GIT_COMMIT_MESSAGE }}