Merge remote-tracking branch 'upstream/master' #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 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 }} |