File tree 2 files changed +14
-2
lines changed
2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -40,15 +40,18 @@ jobs:
40
40
original_action=$(cat ./artifacts/parent-artifacts/action.txt)
41
41
original_sha=$(cat ./artifacts/parent-artifacts/sha.txt)
42
42
original_ref=$(cat ./artifacts/parent-artifacts/ref.txt)
43
+ original_conclusion=$(cat ./artifacts/parent-artifacts/conclusion.txt)
43
44
echo "original_event=$original_event" >> $GITHUB_ENV
44
45
echo "original_action=$original_action" >> $GITHUB_ENV
45
46
echo "original_sha=$original_sha" >> $GITHUB_ENV
46
47
echo "original_ref=$original_ref" >> $GITHUB_ENV
48
+ echo "original_conclusion=$original_conclusion" >> $GITHUB_ENV
47
49
48
50
echo "original_event = $original_event"
49
51
echo "original_action = $original_action"
50
52
echo "original_sha = $original_sha"
51
53
echo "original_ref = $original_ref"
54
+ echo "original_conclusion = $original_conclusion"
52
55
53
56
- name : Publish Unit Test Results
54
57
uses : EnricoMi/publish-unit-test-result-action@v2
59
62
files : ./artifacts/**/*.xml
60
63
action_fail : true
61
64
65
+ - name : Fail if tests failed
66
+ if : ${{ env.original_conclusion == 'failure' || env.original_conclusion == 'timed_out' }}
67
+ run : exit 1
68
+
62
69
- name : Clean up caches
63
70
if : always()
64
71
uses : actions/github-script@v7
Original file line number Diff line number Diff line change @@ -92,12 +92,17 @@ jobs:
92
92
exit 1
93
93
fi
94
94
95
+ conclusion="${{ github.event.workflow_run.conclusion }}"
96
+ printf "$conclusion" >> artifacts/conclusion.txt
97
+ printf "\nConclusion = "
98
+ cat artifacts/conclusion.txt
99
+
95
100
echo "pr_num=$pr_num" >> $GITHUB_OUTPUT
96
101
echo "ref=$ref" >> $GITHUB_OUTPUT
97
102
98
103
- name : Download and extract parent hardware results
99
104
uses : actions/download-artifact@v4
100
- continue-on-error : true
105
+ continue-on-error : ${{ github.event.workflow_run.event != 'schedule' && github.event.workflow_run.event != 'workflow_dispatch' }}
101
106
with :
102
107
github-token : ${{ secrets.GITHUB_TOKEN }}
103
108
run-id : ${{ github.event.workflow_run.id }}
@@ -107,7 +112,7 @@ jobs:
107
112
108
113
- name : Download and extract parent QEMU results
109
114
uses : actions/download-artifact@v4
110
- continue-on-error : true
115
+ continue-on-error : true # Change when QEMU tests are enabled
111
116
with :
112
117
github-token : ${{ secrets.GITHUB_TOKEN }}
113
118
run-id : ${{ github.event.workflow_run.id }}
You can’t perform that action at this time.
0 commit comments