PlaceholderAPI/.github/workflows/wiki.yml

53 lines
1.4 KiB
YAML
Raw Normal View History

#
# 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:
2020-08-01 04:52:07 +02:00
- 'wiki/**'
branches:
2020-08-01 04:52:07 +02:00
- 'docs/wiki'
#
# Releases cause this action to also fire.
# Using this prevents this problem.
#
tags-ignore:
2020-08-01 04:52:07 +02:00
- '**'
jobs:
update:
runs-on: ubuntu-latest
steps:
2020-08-01 04:52:07 +02:00
- 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.
#
ACTION_MAIL: 'actions@github.com'
ACTION_NAME: 'github-actions[bot]'
#
# We (sadly) have to use a PAT (Personal Access Token) for this action.
#
GH_PAT: '${{ secrets.WORKFLOWPAT }}'
2020-12-29 17:51:36 +01:00
OWNER: 'PlaceholderAPI'
2020-08-01 04:52:07 +02:00
REPO_NAME: 'PlaceholderAPI'
#
# We only want to target files in the wiki folder
#
MD_FOLDER: 'wiki'
WIKI_PUSH_MESSAGE: '${{ github.event.commits[0].message }}'
#
# We skip/ignore the README.md file in the Wiki folder
#
SKIP_MD: README.md