From f0cba4f2af9cefa157f0ad488adf297dc90130c0 Mon Sep 17 00:00:00 2001 From: Chris Fenner Date: Tue, 4 Oct 2022 14:09:51 -0700 Subject: [PATCH] Fix the sed script for manipulating pre-TOC sections --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 9d92b12..0e3cea3 100644 --- a/action.yml +++ b/action.yml @@ -51,7 +51,7 @@ runs: # While we're doing this, transform the case to all-caps. - run: > sed -i - '/0/,/\\tableofcontents/s/^# \(.*\)/\\addsec\{\U\1\}/g' + '0,/\\tableofcontents/s/^# \(.*\)/\\addsec\{\U\1\}/g' ${{ inputs.input-md }} shell: sh # Grab the date from the front matter and generate the full date and year.