ci: run the "bors build finished" jobs only during try and auto runs

This commit is contained in:
Pietro Albini 2020-03-20 18:28:47 +01:00
parent ba97ad3509
commit 89339df264
No known key found for this signature in database
GPG key ID: 3E06ABE80BAAF19C
2 changed files with 8 additions and 6 deletions

View file

@ -746,7 +746,7 @@ jobs:
try-success:
needs:
- try
if: success()
if: "success() && github.event_name == 'push' && github.ref == 'refs/heads/try' && github.repository == 'rust-lang-ci/rust'"
steps:
- name: mark the job as a success
run: exit 0
@ -755,7 +755,7 @@ jobs:
try-failure:
needs:
- try
if: "!success()"
if: "!success() && github.event_name == 'push' && github.ref == 'refs/heads/try' && github.repository == 'rust-lang-ci/rust'"
steps:
- name: mark the job as a failure
run: exit 1
@ -764,7 +764,7 @@ jobs:
auto-success:
needs:
- auto
if: success()
if: "success() && github.event_name == 'push' && github.ref == 'refs/heads/auto' && github.repository == 'rust-lang-ci/rust'"
steps:
- name: mark the job as a success
run: exit 0
@ -773,7 +773,7 @@ jobs:
auto-failure:
needs:
- auto
if: "!success()"
if: "!success() && github.event_name == 'push' && github.ref == 'refs/heads/auto' && github.repository == 'rust-lang-ci/rust'"
steps:
- name: mark the job as a failure
run: exit 1