Skip to content

Commit

Permalink
DEBUG: check value of NTD2D_PUSH_PAGES
Browse files Browse the repository at this point in the history
  • Loading branch information
guyer committed Sep 7, 2023
1 parent e405f02 commit 765513f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ntd2d/ntd2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def main():
if pre_build_command != "":
with gha_utils.group("Executing pre-build-command", use_subprocess=True):
gha_utils.debug(f"pre-build-command: {pre_build_command}", use_subprocess=True)
subprocess.run(pre_build_command, shell=True, check=True)
subprocess.run(pre_build_command, check=True)

with gha_utils.group("Build HTML", use_subprocess=True):
build_command = os.environ['INPUT_BUILD-HTML-COMMAND']
Expand All @@ -39,7 +39,8 @@ def main():
build_command = os.environ['INPUT_BUILD-EPUB-COMMAND']
docs.build_docs(build_command=build_command)

if os.environ['NTD2D_PUSH_PAGES']:
gha_utils.echo(f"os.environ['NTD2D_PUSH_PAGES'] = {os.environ['NTD2D_PUSH_PAGES']}")
if os.environ['NTD2D_PUSH_PAGES'] == "true":
with gha_utils.group("Update Pages", use_subprocess=True):
repo = Repository(server_url=os.environ['GITHUB_SERVER_URL'],
repository=os.environ['GITHUB_REPOSITORY'],
Expand Down

0 comments on commit 765513f

Please sign in to comment.