From be049817ed358e18960aabeeb938b282a90aed99 Mon Sep 17 00:00:00 2001 From: Soren Rasmussen Date: Tue, 21 May 2024 20:15:34 -0600 Subject: [PATCH] Debugging new Github CI --- tests/local/utils/attach_plots_to_pr.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/local/utils/attach_plots_to_pr.py b/tests/local/utils/attach_plots_to_pr.py index b35b2abfb..a248e0de6 100644 --- a/tests/local/utils/attach_plots_to_pr.py +++ b/tests/local/utils/attach_plots_to_pr.py @@ -176,6 +176,10 @@ def add_images(images, outdir, pull): if runcmd(f"cp {img} {imagedir}/.") is None: raise Exception("Not all image files could be copied") + logger.debug("Pulling from github") + if runcmd(f"git pull origin HEAD:refs/{IMAGEREF}", outdir) is None: + raise Exception("Problem pulling form github") + logger.debug("Adding images to commit") if runcmd(f"git add images_{pull}", outdir) is None: raise Exception("Problem committing new images")