Skip to content

Commit 653ebb4

Browse files
cortinicofacebook-github-bot
authored andcommitted
Retry iOS template app setup failures
Summary: The reusable iOS template app workflow reported success whenever its build or test job failed before producing a test-status output. That made the parent workflow skip both configured fresh-runner retries. Include the prerequisite job results in the reported status so setup and runner failures trigger retries while successful executions remain unchanged. Changelog: [Internal] ___ Differential Revision: D124061176
1 parent be5235d commit 653ebb4

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎.github/workflows/e2e-ios-templateapp.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,15 +163,17 @@ jobs:
163163
run: echo "status=failure" >> $GITHUB_OUTPUT
164164

165165
report:
166-
needs: test
166+
needs: [build, test]
167167
if: always()
168168
runs-on: ubuntu-latest
169169
outputs:
170170
status: ${{ steps.check.outputs.status }}
171171
steps:
172172
- id: check
173173
run: |
174-
if [[ "${{ needs.test.outputs.status }}" == "failure" ]]; then
174+
if [[ "${{ needs.build.result }}" != "success" ||
175+
"${{ needs.test.result }}" != "success" ||
176+
"${{ needs.test.outputs.status }}" == "failure" ]]; then
175177
echo "status=failure" >> $GITHUB_OUTPUT
176178
else
177179
echo "status=success" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)