From c1039f984bca4335127f625f6c0398ee4eb40e6b Mon Sep 17 00:00:00 2001 From: Patrick Latimer <110747402+patricklatimer@users.noreply.github.com> Date: Thu, 4 Sep 2025 12:51:26 -0700 Subject: [PATCH] Add util-wiki-sidebar action --- .github/workflows/util-wiki-sidebar.yml | 30 +++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/util-wiki-sidebar.yml diff --git a/.github/workflows/util-wiki-sidebar.yml b/.github/workflows/util-wiki-sidebar.yml new file mode 100644 index 0000000..1d063a0 --- /dev/null +++ b/.github/workflows/util-wiki-sidebar.yml @@ -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 \ No newline at end of file