This is an automated email from the ASF dual-hosted git repository. pierrejeambrun pushed a commit to branch v2-5-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 46788aa9f4646651f90eb36b6465fd23bd615203 Author: Pierre Jeambrun <[email protected]> AuthorDate: Sat Mar 11 14:07:21 2023 +0100 Fix shell expansion for release management commands (#30027) (cherry picked from commit 3bac8f726e516fae7a3eb7c2807d029862947cb5) --- .../src/airflow_breeze/commands/release_candidate_command.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/dev/breeze/src/airflow_breeze/commands/release_candidate_command.py b/dev/breeze/src/airflow_breeze/commands/release_candidate_command.py index e444082389..c9c344570c 100644 --- a/dev/breeze/src/airflow_breeze/commands/release_candidate_command.py +++ b/dev/breeze/src/airflow_breeze/commands/release_candidate_command.py @@ -103,9 +103,7 @@ def create_artifacts_with_breeze(): def sign_the_release(repo_root): if confirm_action("Do you want to sign the release?"): os.chdir(repo_root) - run_command(["pushd", "dist"], dry_run_override=DRY_RUN, check=True) - run_command(["./dev/sign.sh", "*"], dry_run_override=DRY_RUN, check=True) - run_command(["popd"], dry_run_override=DRY_RUN, check=True) + run_command("./dev/sign.sh dist/*", dry_run_override=DRY_RUN, check=True, shell=True) console_print("Release signed") @@ -147,7 +145,7 @@ def move_artifacts_to_svn(version, repo_root): if confirm_action("Do you want to move artifacts to SVN?"): os.chdir(f"{repo_root}/asf-dist/dev/airflow") run_command(["svn", "mkdir", f"{version}"], dry_run_override=DRY_RUN, check=True) - run_command(["mv", f"{repo_root}/dist/*", f"{version}/"], dry_run_override=DRY_RUN, check=True) + run_command(f"mv {repo_root}/dist/* {version}/", dry_run_override=DRY_RUN, check=True, shell=True) console_print("Moved artifacts to SVN:") run_command(["ls"], dry_run_override=DRY_RUN) @@ -159,7 +157,7 @@ def push_artifacts_to_asf_repo(version, repo_root): os.chdir(f"{repo_root}/asf-dist/dev/airflow/{version}") run_command(["ls"], dry_run_override=DRY_RUN) confirm_action("Do you want to continue?", abort=True) - run_command(["svn", "add", "*"], dry_run_override=DRY_RUN, check=True) + run_command("svn add *", dry_run_override=DRY_RUN, check=True, shell=True) run_command( ["svn", "commit", "-m", f"Add artifacts for Airflow {version}"], dry_run_override=DRY_RUN,
