Skip to content

Commit a223363

Browse files
derekk-nmdtrifirotarukumar
authored
look for droute_send_template.json in $GITHUB_ACTION_PATH (#58)
* look for droute_send_template.json in $GITHUB_ACTION_PATH * test TEMPLATE isn't empty * skip find droute_send_template, give direct path Co-authored-by: Daniele <36171005+dtrifiro@users.noreply.github.com> * test droute_sent_template.json exists before using it. * correct logic * improve bash for consistency Co-authored-by: Tarun Kumar <takumar@redhat.com> --------- Co-authored-by: Daniele <36171005+dtrifiro@users.noreply.github.com> Co-authored-by: Tarun Kumar <takumar@redhat.com>
1 parent d501399 commit a223363

File tree

1 file changed

+6
-1
lines changed
  • actions/reportportal_submit_execution_results

1 file changed

+6
-1
lines changed

actions/reportportal_submit_execution_results/action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,12 @@ runs:
7070
ls $TEST_RESULTS
7171
7272
# generate report metadata file
73-
TEMPLATE=`find ~ -type f -name 'droute_send_template.json'`
73+
TEMPLATE="${GITHUB_ACTION_PATH}/droute_send_template.json"
74+
if [[ ! -f "$TEMPLATE" ]]; then
75+
echo "droute_send_template.json not found in $GITHUB_ACTION_PATH"
76+
exit 1
77+
fi
78+
7479
echo "Generating datarouter.json based on template $TEMPLATE"
7580
jq --raw-output \
7681
--slurpfile metadata ${{ inputs.metadata_filepath }} \

0 commit comments

Comments
 (0)