Enhancement: include current filename placeholder in workflows (#8319)

Co-authored-by: Trenton H <797416+stumpylog@users.noreply.github.com>
Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
lufi
2024-12-03 04:09:27 +01:00
committed by GitHub
parent 1d65628132
commit 0406fca59b
5 changed files with 12 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ def parse_w_workflow_placeholders(
owner_username: str,
local_added: datetime,
original_filename: str,
filename: str,
created: datetime | None = None,
doc_title: str | None = None,
doc_url: str | None = None,
@@ -31,6 +32,7 @@ def parse_w_workflow_placeholders(
"added_time": local_added.strftime("%H:%M"),
"owner_username": owner_username,
"original_filename": Path(original_filename).stem,
"filename": Path(filename).stem,
}
if created is not None:
formatting.update(