File tree 2 files changed +9
-11
lines changed
2 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ jobs:
200
200
if : ${{ always() }}
201
201
run : |
202
202
mkdir -p $GITHUB_WORKSPACE/test_report
203
- cp -r $GITHUB_WORKSPACE/candidate/build/Run/output_${{ matrix.configuration }} /* $GITHUB_WORKSPACE/test_report/
203
+ cp -r $GITHUB_WORKSPACE/candidate/build/Run/output_diff/diff_plots /* $GITHUB_WORKSPACE/test_report/
204
204
205
205
- name : Attach diff plots to PR
206
206
if : ${{ failure() }}
@@ -214,5 +214,4 @@ jobs:
214
214
with :
215
215
name : test-reports
216
216
path : |
217
- ${{ github.workspace }}/test_report/**.html
218
- ${{ github.workspace }}/test_report/*/diff_plots
217
+ ${{ github.workspace }}/test_report/*
Original file line number Diff line number Diff line change 3
3
PR=$1
4
4
CONFIG=$2
5
5
cwd=` pwd`
6
- diffs=$GITHUB_WORKSPACE /test_report/$CONFIG /diff_plots
6
+ diffs=$GITHUB_WORKSPACE /test_report/$CONFIG
7
7
8
8
if [[ ! -d $diffs ]]; then
9
- echo " No diff plots to attach! "
9
+ echo " No diff plots to attach at ${diffs} "
10
10
exit 0
11
11
fi
12
12
@@ -21,9 +21,8 @@ REPO=NCAR/wrf_hydro_nwm_public
21
21
22
22
cd $diffs
23
23
24
- for d in ` ls -1`
25
- do
26
- if [[ -d $d && ` ls -1 $d ` ]]; then
27
- python $cwd /attach_plots_to_pr.py -r $REPO -p $PR -d -t " $TOKEN " --title " $title " $d /*
28
- fi
29
- done
24
+ # if $diffs directory is not empty, attach files in it
25
+ if [[ ` ls -1 ./` ]]
26
+ then
27
+ python $cwd /attach_plots_to_pr.py -r $REPO -p $PR -d -t " $TOKEN " --title " $title " ./*
28
+ fi
You can’t perform that action at this time.
0 commit comments