Skip to content

Commit d5e977d

Browse files
committed
use conclusion job to determine pr success for bors
1 parent 7832149 commit d5e977d

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

.github/bors.toml

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
block_labels = ["needs-decision"]
22
delete_merged_branches = true
33
required_approvals = 1
4-
status = [
5-
"ci (1.46.0, ubuntu-latest, false)",
6-
"ci (1.46.0, macos-latest, false)",
7-
"ci (1.46.0, windows-latest, false)",
8-
"ci (stable, ubuntu-latest, false)",
9-
"ci (stable, macos-latest, false)",
10-
"ci (stable, windows-latest, false)",
11-
]
4+
status = ["conclusion"]

.github/workflows/ci.yml

+11
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,14 @@ jobs:
6969
with:
7070
command: strip
7171
args: --bin cargo-strip -v
72+
conclusion:
73+
runs-on: ubuntu-latest
74+
needs: ci
75+
if: always()
76+
steps:
77+
- name: Result
78+
run: |
79+
jq -C <<< "${needs}"
80+
"$(jq -r 'all(.result as $result | (["success"] | contains([$result])))' <<< "${needs}")"
81+
env:
82+
needs: ${{ toJson(needs) }}

0 commit comments

Comments
 (0)