From 9a18955f3f7b0ac98b5d8ede8e1ed12fa3a99b53 Mon Sep 17 00:00:00 2001 From: Leonardo Mendoza Fernadez Date: Tue, 16 Apr 2024 15:53:04 -0600 Subject: [PATCH] Clone wp post --- .github/workflows/clone-post.yml | 2 +- wordpress-cloning-script.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/clone-post.yml b/.github/workflows/clone-post.yml index 7b9802e..1c7e4c0 100644 --- a/.github/workflows/clone-post.yml +++ b/.github/workflows/clone-post.yml @@ -11,7 +11,7 @@ on: postID: required: true type: string - description: "The ID of the post to clone" + description: "The ID of the page to clone" default: "25163" jobs: diff --git a/wordpress-cloning-script.py b/wordpress-cloning-script.py index 852260e..7f1a103 100644 --- a/wordpress-cloning-script.py +++ b/wordpress-cloning-script.py @@ -5,7 +5,7 @@ def main(environment, post_id, wordpreess_staggin_username, wordpreess_staggin_password): # Define the base URL based on the environment - base_url = "https://info.qa.orcid.org/" if environment == "PROD" else "https://info.orcid.org/" + base_url = "https://info.qa.orcid.org/" if environment != "PROD" else "https://info.orcid.org/" headers = { 'Accept': 'application/json', "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36"