From 16fb7ca849c3740b29e1836e6130adcac7c71b5e Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Thu, 7 Nov 2024 16:00:48 -0800 Subject: [PATCH] Forgot one spot --- release_gitter.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/release_gitter.py b/release_gitter.py index 5aa2a84..14c4bc2 100755 --- a/release_gitter.py +++ b/release_gitter.py @@ -661,9 +661,14 @@ def main(): print(asset["browser_download_url"]) return + format_fields = dict( + asset_name=asset["name"], + **matched_values._asdict(), + ) + # Format files to extract with version info, as this is sometimes included formatted_files = ( - [file.format(**matched_values._asdict()) for file in args.extract_files] + [file.format(**format_fields) for file in args.extract_files] if args.extract_files else None ) @@ -678,7 +683,7 @@ def main(): # Optionally execute post command if args.exec: - check_call(args.exec.format(asset["name"]), shell=True) + check_call(args.exec.format(asset["name"], **format_fields), shell=True) if __name__ == "__main__":