Skip to content

Commit

Permalink
Clone wp post
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonardo Mendoza Fernadez authored and Leonardo Mendoza Fernadez committed Apr 16, 2024
1 parent 6808f1c commit 9a18955
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/clone-post.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion wordpress-cloning-script.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 9a18955

Please sign in to comment.