Skip to content

Commit fe6635c

Browse files
committed
Update Results stage in pipeline
1 parent 3b10170 commit fe6635c

File tree

1 file changed

+20
-13
lines changed

1 file changed

+20
-13
lines changed

.github/workflows/build-and-test-v3.yml

+20-13
Original file line numberDiff line numberDiff line change
@@ -223,16 +223,23 @@ jobs:
223223
cd ${{ matrix.template }}
224224
wails3 build
225225
226-
results:
227-
if: ${{ always() }}
228-
runs-on: ubuntu-latest
229-
name: v3 Build Results
230-
needs: [test_go, test_js, test_templates]
231-
steps:
232-
- run: |
233-
result="${{ needs.build.result }}"
234-
if [[ $result == "success" || $result == "skipped" ]]; then
235-
exit 0
236-
else
237-
exit 1
238-
fi
226+
results:
227+
if: ${{ always() }}
228+
runs-on: ubuntu-latest
229+
name: v3 Build Results
230+
needs: [test_go, test_js, test_templates]
231+
steps:
232+
- run: |
233+
go_result="${{ needs.test_go.result }}"
234+
js_result="${{ needs.test_js.result }}"
235+
templates_result="${{ needs.test_templates.result }}"
236+
237+
if [[ $go_result == "success" || $go_result == "skipped" ]] && \
238+
[[ $js_result == "success" || $js_result == "skipped" ]] && \
239+
[[ $templates_result == "success" || $templates_result == "skipped" ]]; then
240+
echo "All required jobs succeeded or were skipped"
241+
exit 0
242+
else
243+
echo "One or more required jobs failed"
244+
exit 1
245+
fi

0 commit comments

Comments
 (0)