File tree 2 files changed +8
-6
lines changed
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -746,7 +746,7 @@ jobs:
746
746
try-success :
747
747
needs :
748
748
- try
749
- if : success()
749
+ if : " success() && github.event_name == 'push' && github.ref == 'refs/heads/try' && github.repository == 'rust-lang-ci/rust' "
750
750
steps :
751
751
- name : mark the job as a success
752
752
run : exit 0
@@ -755,7 +755,7 @@ jobs:
755
755
try-failure :
756
756
needs :
757
757
- try
758
- if : " !success()"
758
+ if : " !success() && github.event_name == 'push' && github.ref == 'refs/heads/try' && github.repository == 'rust-lang-ci/rust' "
759
759
steps :
760
760
- name : mark the job as a failure
761
761
run : exit 1
@@ -764,7 +764,7 @@ jobs:
764
764
auto-success :
765
765
needs :
766
766
- auto
767
- if : success()
767
+ if : " success() && github.event_name == 'push' && github.ref == 'refs/heads/auto' && github.repository == 'rust-lang-ci/rust' "
768
768
steps :
769
769
- name : mark the job as a success
770
770
run : exit 0
@@ -773,7 +773,7 @@ jobs:
773
773
auto-failure :
774
774
needs :
775
775
- auto
776
- if : " !success()"
776
+ if : " !success() && github.event_name == 'push' && github.ref == 'refs/heads/auto' && github.repository == 'rust-lang-ci/rust' "
777
777
steps :
778
778
- name : mark the job as a failure
779
779
run : exit 1
Original file line number Diff line number Diff line change @@ -221,14 +221,12 @@ x--expand-yaml-anchors--remove:
221
221
runs-on : ubuntu-latest
222
222
223
223
- &base-success-job
224
- if : success()
225
224
steps :
226
225
- name : mark the job as a success
227
226
run : exit 0
228
227
<< : *base-outcome-job
229
228
230
229
- &base-failure-job
231
- if : " !success()"
232
230
steps :
233
231
- name : mark the job as a failure
234
232
run : exit 1
@@ -695,13 +693,17 @@ jobs:
695
693
# successful listening to webhooks only.
696
694
try-success :
697
695
needs : [try]
696
+ if : " success() && github.event_name == 'push' && github.ref == 'refs/heads/try' && github.repository == 'rust-lang-ci/rust'"
698
697
<< : *base-success-job
699
698
try-failure :
700
699
needs : [try]
700
+ if : " !success() && github.event_name == 'push' && github.ref == 'refs/heads/try' && github.repository == 'rust-lang-ci/rust'"
701
701
<< : *base-failure-job
702
702
auto-success :
703
703
needs : [auto]
704
+ if : " success() && github.event_name == 'push' && github.ref == 'refs/heads/auto' && github.repository == 'rust-lang-ci/rust'"
704
705
<< : *base-success-job
705
706
auto-failure :
706
707
needs : [auto]
708
+ if : " !success() && github.event_name == 'push' && github.ref == 'refs/heads/auto' && github.repository == 'rust-lang-ci/rust'"
707
709
<< : *base-failure-job
You can’t perform that action at this time.
0 commit comments