Skip to content

Commit 3d1f793

Browse files
committed
publish gopogh url in summary
1 parent 7a4c484 commit 3d1f793

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/functional_test.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,11 +395,20 @@ jobs:
395395
with:
396396
name: functional-${{ matrix.name }}-${{ steps.vars.outputs.PR_OR_MASTER }}-sha-${{ steps.vars.outputs.COMMIT_SHA }}-run-${{ steps.vars.outputs.RUN_ID_SHORT}}
397397
path: ./report
398-
- name: The End Result ${{ matrix.name }}
398+
- name: The End Result Summary ${{ matrix.name }}
399399
shell: bash
400400
run: |
401401
summary="$GITHUB_STEP_SUMMARY"
402-
402+
ARTIFACT_NAME="functional-${{ matrix.name }}-${{ steps.vars.outputs.PR_OR_MASTER }}-sha-${{ steps.vars.outputs.COMMIT_SHA }}"
403+
ARTIFACT_ID='${{ steps.upload_gopogh.outputs.artifact-id }}'
404+
if [ -n "$ARTIFACT_ID" ]; then
405+
URL="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts/$ARTIFACT_ID"
406+
echo "Gopogh report artifact ($ARTIFACT_NAME): $URL"
407+
echo "Gopogh report artifact URL: $URL" >> $GITHUB_STEP_SUMMARY
408+
else
409+
echo "Could not determine artifact ID (action version may not expose it). Find artifact named: $ARTIFACT_NAME"
410+
echo "Report artifact name: $ARTIFACT_NAME" >> $GITHUB_STEP_SUMMARY
411+
fi
403412
echo "-------------------- RESULT SUMMARY --------------------"
404413
echo "$RESULT_SHORT" | tee -a "$summary"
405414
@@ -430,3 +439,4 @@ jobs:
430439
if [ "$numPass" -eq 0 ];then echo "*** 0 Passed! ***";exit 2;fi
431440
# Safe Guard for when tests gets skipped and no failures
432441
if [ "$numPass" -lt 35 ];then echo "*** Failed to pass at least 35 ! ***";exit 2;fi
442+

0 commit comments

Comments
 (0)