diff --git a/.github/workflows/sync-to-wiki.yml b/.github/workflows/sync-to-wiki.yml index 09cada1..eca7cce 100644 --- a/.github/workflows/sync-to-wiki.yml +++ b/.github/workflows/sync-to-wiki.yml @@ -10,6 +10,8 @@ on: pull_request: paths: - "**.bib" + - "scripts/**" + - "config.json" workflow_dispatch: permissions: diff --git a/scripts/bib_to_wikitext.py b/scripts/bib_to_wikitext.py index 077b324..d8e8e62 100644 --- a/scripts/bib_to_wikitext.py +++ b/scripts/bib_to_wikitext.py @@ -168,7 +168,7 @@ def entry_to_wikitext(entry): a_params["is_first_author"] = "Yes" author_blocks.append( - build_template_call("Publication Has publication author", a_params) + build_template_call("Subobject/Has publication author", a_params) ) # -- Assemble page -- diff --git a/scripts/push_to_wiki.py b/scripts/push_to_wiki.py index b7465b3..eaa9266 100644 --- a/scripts/push_to_wiki.py +++ b/scripts/push_to_wiki.py @@ -140,7 +140,7 @@ def extract_template_blocks(content): # Find all author subobject blocks author_blocks = re.findall( - r"\{\{Publication Has publication author\n.*?\}\}", inner, re.DOTALL + r"\{\{Subobject/Has publication author\n.*?\}\}", inner, re.DOTALL ) return main_block, author_blocks