Skip to content

Commit

Permalink
Clone wp post
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed May 18, 2024
1 parent 7f35718 commit 807d47c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions wordpress-cloning-html-script.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")


Expand Down
2 changes: 1 addition & 1 deletion wordpress-cloning-main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 807d47c

Please sign in to comment.