2020-07-28 17:07:41 +02:00
|
|
|
#
|
|
|
|
# This is a GitHub Action that allows us to auto-update the wiki
|
|
|
|
# when a Pull request changes specific files in a folder.
|
|
|
|
#
|
|
|
|
name: Update Wiki
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
#
|
|
|
|
# Only trigger when the push changes any files in the wiki-folder.
|
|
|
|
#
|
|
|
|
paths:
|
|
|
|
- 'wiki/**'
|
|
|
|
branches:
|
|
|
|
- 'master'
|
|
|
|
#
|
|
|
|
# Releases cause this action to also fire.
|
|
|
|
# Using this prevents this problem.
|
|
|
|
#
|
|
|
|
tags-ignore:
|
|
|
|
- '**'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
update:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: 'Checkout Code'
|
|
|
|
uses: actions/Checkout@v2
|
|
|
|
- name: 'Update Wiki'
|
|
|
|
uses: docker://decathlon/wiki-page-creator-action:latest
|
|
|
|
env:
|
|
|
|
#
|
|
|
|
# We can use the E-Mail and Name of the GitHub Actions account
|
|
|
|
# for our convenience.
|
|
|
|
#
|
2020-07-28 18:03:40 +02:00
|
|
|
ACTION_MAIL: 'actions@github.com'
|
2020-07-28 17:07:41 +02:00
|
|
|
ACTION_NAME: 'github-actions[bot]'
|
2020-07-30 23:56:24 +02:00
|
|
|
#
|
|
|
|
# We (sadly) have to use a PAT (Personal Access Token) for this action.
|
|
|
|
#
|
2020-07-28 17:58:41 +02:00
|
|
|
GH_PAT: '${{ secrets.WORKFLOWPAT }}'
|
2020-07-28 17:07:41 +02:00
|
|
|
OWNER: 'PlaceholderAPI'
|
|
|
|
REPO_NAME: 'PlaceholderAPI'
|
|
|
|
#
|
|
|
|
# We only want to target files in the wiki folder
|
|
|
|
#
|
|
|
|
MD_FOLDER: 'wiki'
|
|
|
|
WIKI_PUSH_MESSAGE: 'Updating wiki from commit ${{ github.event.after }}'
|
|
|
|
#
|
|
|
|
# We skip/ignore the README.md file in the Wiki folder
|
|
|
|
#
|
|
|
|
SKIP_MD: README.md
|