Skip to content

Commit 1626428

Browse files
authored
Use latest CI workflow from other servo repos. (#733)
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
1 parent 14d8c7f commit 1626428

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/rust.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,15 @@ jobs:
6262
build_result:
6363
name: Result
6464
runs-on: ubuntu-latest
65+
if: always()
6566
needs:
6667
- "build"
6768
- "semver"
6869
- "typos"
6970
steps:
70-
- name: Mark the job as successful
71+
- name: Success
7172
run: exit 0
72-
if: success()
73-
- name: Mark the job as unsuccessful
73+
if: ${{ !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }}
74+
- name: Failure
7475
run: exit 1
75-
if: "!success()"
76+
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')

0 commit comments

Comments
 (0)