File tree 2 files changed +21
-1
lines changed
2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 68
68
go mod download
69
69
70
70
- name : Run E2E
71
+ id : e2e-tests
71
72
working-directory : ./tests/e2e/
72
73
run : |
73
74
task run:ci -v
75
+
76
+ - name : Send results to Loop
77
+ working-directory : ./tests/e2e/
78
+ if : always()
79
+ run : |
80
+ if [ -z "$SUMMARY" ]; then
81
+ SUMMARY="
82
+ ### :dvp: **DVP $DATE Nightly e2e Tests**
83
+
84
+ **Branch:** \`$GITHUB_REF_NAME\`
85
+ **Status: :question: UNKNOWN**
86
+
87
+ [:link: GitHub Actions Output]($GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID)
88
+ "
89
+ fi
90
+ echo $SUMMARY
91
+ curl -XPOST -H 'Content-Type: application/json' -d "{\"text\": \"${SUMMARY}\"}" $LOOP_WEBHOOK_URL
74
92
env :
75
93
LOOP_WEBHOOK_URL : ${{ secrets.LOOP_WEBHOOK_URL }}
Original file line number Diff line number Diff line change 90
90
91
91
[:link: GitHub Actions Output]($GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID)
92
92
"
93
- curl -XPOST -H 'Content-Type: application/json' -d "{\"text\": \"${SUMMARY}\"}" $LOOP_WEBHOOK_URL
93
+ echo "SUMMARY<<EOF" >> $GITHUB_ENV
94
+ echo "$SUMMARY" >> $GITHUB_ENV
95
+ echo "EOF" >> $GITHUB_ENV
94
96
exit $EXIT_CODE
95
97
96
98
run :
You can’t perform that action at this time.
0 commit comments