From 675de872196fdd7060a933ca1ba900298f8fb363 Mon Sep 17 00:00:00 2001 From: Soren Rasmussen Date: Tue, 21 May 2024 20:32:52 -0600 Subject: [PATCH] updating scripts to work with new Github CI --- tests/local/utils/attach_all_plots.bash | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/tests/local/utils/attach_all_plots.bash b/tests/local/utils/attach_all_plots.bash index 2b1281a17..75ef57751 100644 --- a/tests/local/utils/attach_all_plots.bash +++ b/tests/local/utils/attach_all_plots.bash @@ -21,9 +21,8 @@ REPO=NCAR/wrf_hydro_nwm_public cd $diffs -for d in `ls -1` -do - if [[ -d $d && `ls -1 $d` ]]; then - python $cwd/attach_plots_to_pr.py -r $REPO -p $PR -d -t "$TOKEN" --title "$title" $d/* - fi -done +# if $diffs directory is not empty, attach files in it +if [[ `ls -1 ./` ]] +then + python $cwd/attach_plots_to_pr.py -r $REPO -p $PR -d -t "$TOKEN" --title "$title" ./* +fi