Skip to content

Commit

Permalink
Make TOC and BL headers overridable
Browse files Browse the repository at this point in the history
  • Loading branch information
umonkey committed Aug 5, 2024
1 parent 162142b commit 8ff4b1e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ inputs:
description: "Update existing backlinks."
required: false
default: true
backlinks_header:
description: "Override the default backlinks header."
required: false
default: "## Pages that link here"
toc_header:
description: "Override the default table of contents header."
required: false
default: "**Table of Contents:**"

runs:
using: "composite"
Expand All @@ -29,6 +37,7 @@ runs:
env:
INPUT_PATH: ${{ inputs.path }}
ACTION_PATH: ${{ github.action_path }}
WIKI_BACKLINKS_HEADER: ${{ inputs.backlinks_header }}

- name: "Update tables of contents"
run: |
Expand All @@ -37,3 +46,4 @@ runs:
env:
INPUT_PATH: ${{ inputs.path }}
ACTION_PATH: ${{ github.action_path }}
WIKI_TOC_HEADER: ${{ inputs.toc_header }}

0 comments on commit 8ff4b1e

Please # to comment.