tvalentyn commented on a change in pull request #14325:
URL: https://github.com/apache/beam/pull/14325#discussion_r605036910
##########
File path: release/src/main/scripts/download_github_actions_artifacts.py
##########
@@ -254,18 +256,27 @@ def prepare_directory(artifacts_dir):
os.makedirs(artifacts_dir)
-def fetch_github_artifacts(run_id, repo_url, artifacts_dir, github_token):
+def filter_artifacts(artifacts, rc_number):
+ def filter_source(artifact_name):
+ if rc_number:
+ return artifact_name.startswith("source_zip_rc{}".format(rc_number))
Review comment:
nit: you can also use f-string: f"source_zip_rc{rc_number}"
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]