Skip to content

Commit 6a3ba3d

Browse files
committed
Update Results stage in pipeline
(cherry picked from commit fe6635c)
1 parent 15191c3 commit 6a3ba3d

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
@@ -173,16 +173,23 @@ jobs:
173173
cd ${{ matrix.template }}
174174
wails3 build
175175
176-
results:
177-
if: ${{ always() }}
178-
runs-on: ubuntu-latest
179-
name: v3 Build Results
180-
needs: [test_go, test_js, test_templates]
181-
steps:
182-
- run: |
183-
result="${{ needs.build.result }}"
184-
if [[ $result == "success" || $result == "skipped" ]]; then
185-
exit 0
186-
else
187-
exit 1
188-
fi
176+
results:
177+
if: ${{ always() }}
178+
runs-on: ubuntu-latest
179+
name: v3 Build Results
180+
needs: [test_go, test_js, test_templates]
181+
steps:
182+
- run: |
183+
go_result="${{ needs.test_go.result }}"
184+
js_result="${{ needs.test_js.result }}"
185+
templates_result="${{ needs.test_templates.result }}"
186+
187+
if [[ $go_result == "success" || $go_result == "skipped" ]] && \
188+
[[ $js_result == "success" || $js_result == "skipped" ]] && \
189+
[[ $templates_result == "success" || $templates_result == "skipped" ]]; then
190+
echo "All required jobs succeeded or were skipped"
191+
exit 0
192+
else
193+
echo "One or more required jobs failed"
194+
exit 1
195+
fi

0 commit comments

Comments
 (0)