Skip to content

Cam8863/wiki-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wiki Action

A GitHub Action that updates your project's wiki (with a custom sidebar) from a workflow. This project is in BETA. Please report bugs if encountered.

Usage

name: Update Wiki

# on: [push]

# recommended
on:
  push:
    paths:
      - 'wiki/**'
    branches:
      - master

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1

      - uses: ineshbose/wiki-action@v1
        with:
          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          WIKI_DIR: 'wiki'
          AUTO_SIDEBAR: true
Argument Required Default Description
GH_TOKEN Yes GitHub Token required to make changes. You can use ${{ secrets.GITHUB_TOKEN }}.
WIKI_DIR No wiki The directory relative to the repository root where the wiki files are.
WIKI_IGNORE No Files and directories (separated with a space) that are not supposed to be on the wiki (and sidebar).
AUTO_SIDEBAR No False Add files onto _Sidebar.md for the Wiki according to the directory structure.
SIDEBAR_IGNORE No Files and directories (separated with a space) that are not supposed to be listed on the sidebar.

Sidebar Customisation

You can still create a _Sidebar.md with your project logo and more listings on it, and the rest of the items will be added towards the end. Make sure that the file ends with an empty line.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages