Skip to content

Commit 903c667

Browse files
authored
websocket: autobahn workflow should fail on error (#3259)
1 parent c8352d7 commit 903c667

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/autobahn.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,11 @@ jobs:
5353
- name: Report into CI
5454
id: report-ci
5555
run: npm run test:websocket:autobahn:report
56+
env:
57+
FAIL_ON_ERROR: true
5658

5759
- name: Generate Report for PR Comment
58-
if: github.event_name == 'pull_request_target'
60+
if: (failure() || success()) && github.event_name == 'pull_request_target'
5961
id: report-markdown
6062
run: |
6163
echo "comment<<nEOFn" >> $GITHUB_OUTPUT
@@ -65,7 +67,7 @@ jobs:
6567
REPORTER: markdown
6668

6769
- name: Comment PR
68-
if: github.event_name == 'pull_request_target'
70+
if: (failure() || success()) && github.event_name == 'pull_request_target'
6971
uses: thollander/actions-comment-pull-request@v2
7072
with:
7173
message: ${{ steps.report-markdown.outputs.comment }}

0 commit comments

Comments
 (0)