File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -196,9 +196,9 @@ jobs:
196
196
- name : Build TestApp iOS (UIKit)
197
197
run : xcodebuild -project test-app/ios-uikit/TestApp.xcodeproj -scheme TestApp -destination 'platform=iOS Simulator,name=iPhone 15,OS=latest'
198
198
199
- publish :
200
- runs-on : macos-latest
201
- if : ${{ github.ref == 'refs/heads/trunk' && github.repository == 'cashapp/redwood' }}
199
+ final-status :
200
+ if : ${{ !cancelled() }}
201
+ runs-on : ubuntu-latest
202
202
needs :
203
203
- build
204
204
- dokka
@@ -209,6 +209,20 @@ jobs:
209
209
- sample-emoji
210
210
- sample-emoji-emulator
211
211
- test-app
212
+ steps :
213
+ - name : Check
214
+ run : |
215
+ results=$(tr -d '\n' <<< '${{ toJSON(needs.*.result) }}')
216
+ if ! grep -q -v -E '(failure|cancelled)' <<< "$results"; then
217
+ echo "One or more required jobs failed"
218
+ exit 1
219
+ fi
220
+
221
+ publish :
222
+ runs-on : macos-latest
223
+ if : ${{ github.ref == 'refs/heads/trunk' && github.repository == 'cashapp/redwood' }}
224
+ needs :
225
+ - final-status
212
226
steps :
213
227
- uses : actions/checkout@v4
214
228
You can’t perform that action at this time.
0 commit comments