mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2024-11-01 07:46:28 +01:00
37 lines
839 B
YAML
37 lines
839 B
YAML
#
|
|
# 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:
|
|
- 'docs/wiki'
|
|
#
|
|
# 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: Andrew-Chen-Wang/github-wiki-action@v2
|
|
env:
|
|
WIKI_DIR: wiki/
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
GH_MAIL: 'actions@github.com'
|
|
GH_NAME: 'github-actions[bot]'
|
|
EXCLUDED_FILES: 'README.md'
|