From 807d47c3d26ed36dcf101994cfb23cefe4a73f9d Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 17 May 2024 18:48:15 -0600 Subject: [PATCH] Clone wp post --- wordpress-cloning-html-script.py | 4 ++-- wordpress-cloning-main.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wordpress-cloning-html-script.py b/wordpress-cloning-html-script.py index 2fb3af9..71f05a4 100644 --- a/wordpress-cloning-html-script.py +++ b/wordpress-cloning-html-script.py @@ -54,13 +54,13 @@ def main(environment, post_id, wordpress_staging_username, wordpress_staging_pas except requests.exceptions.RequestException as e: if environment == "PROD": - message = f"Failed to fetch post {post_id} from {base_url}. \n Error: {e}" + message = f"Failed to fetch post {post_id} for language {language}. \n Error: {e}" writer.write_summary(f"- {message}\n") writer.write_output("script-success", "false") sys.exit(1) else: writer.write_output("script-success", "false") - message = f"Skipping post {post_id} from {base_url}. \n Error: {e}" + message = f"Skipping post {post_id} for language {language}. \n Error: {e}" writer.write_summary(f"- {message}\n") diff --git a/wordpress-cloning-main.py b/wordpress-cloning-main.py index f47d6cf..2a2260d 100644 --- a/wordpress-cloning-main.py +++ b/wordpress-cloning-main.py @@ -61,7 +61,7 @@ def main(): writer.write_summary("## HTML cloning script:\n") run_script("wordpress-cloning-html-script.py", args.environment, args.post_id, args.wordpress_username, args.wordpress_password, "true") - writer.write_summary("## CSS cloning script:.\n") + writer.write_summary("## CSS cloning script:\n") run_script("wordpress-cloning-css-script.py", args.environment, args.wordpress_username, args.wordpress_password) writer.write_summary("## PurgeCSS script:\n")