Skip to content

Commit a60cbf3

Browse files
authored
chore(ci): add unconditional send to loop (#607)
Signed-off-by: Maksim Fedotov <[email protected]>
1 parent 1a482e2 commit a60cbf3

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.github/workflows/nightly_e2e_tests_main.yaml

+18
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,26 @@ jobs:
6868
go mod download
6969
7070
- name: Run E2E
71+
id: e2e-tests
7172
working-directory: ./tests/e2e/
7273
run: |
7374
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
7492
env:
7593
LOOP_WEBHOOK_URL: ${{ secrets.LOOP_WEBHOOK_URL }}

tests/e2e/Taskfile.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ tasks:
9090
9191
[:link: GitHub Actions Output]($GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID)
9292
"
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
9496
exit $EXIT_CODE
9597
9698
run:

0 commit comments

Comments
 (0)