Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/util-wiki-sidebar.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Update Wiki Sidebar
# Generates a hierarchical wiki sidebar with https://github.com/adriantanasa/github-wiki-sidebar

on: [gollum, workflow_dispatch]

jobs:
update_wiki_sidebar:
runs-on: ubuntu-latest

steps:
- name: Checkout wiki repository
uses: actions/checkout@v4
with:
repository: ${{ github.repository }}.wiki
path: wiki

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Install github-wiki-sidebar
run: npm install -g github-wiki-sidebar

- name: Generate sidebar (_Sidebar.md)
working-directory: wiki
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
github-wiki-sidebar --silent --git-push