diff options
| author | Pietro Albini <pietro@pietroalbini.org> | 2020-03-20 18:28:47 +0100 |
|---|---|---|
| committer | Pietro Albini <pietro@pietroalbini.org> | 2020-03-24 15:36:14 +0100 |
| commit | 89339df264ab09320e31f6edd9a6d355a09244fb (patch) | |
| tree | afc052c14bc0f8387642248f07f21f5135aa05e2 /src/ci/github-actions | |
| parent | ba97ad35097146570508dff455f88a194daca3b6 (diff) | |
| download | rust-89339df264ab09320e31f6edd9a6d355a09244fb.tar.gz rust-89339df264ab09320e31f6edd9a6d355a09244fb.zip | |
ci: run the "bors build finished" jobs only during try and auto runs
Diffstat (limited to 'src/ci/github-actions')
| -rw-r--r-- | src/ci/github-actions/ci.yml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ci/github-actions/ci.yml b/src/ci/github-actions/ci.yml index b4f2a367f4d..81a334cd487 100644 --- a/src/ci/github-actions/ci.yml +++ b/src/ci/github-actions/ci.yml @@ -221,14 +221,12 @@ x--expand-yaml-anchors--remove: runs-on: ubuntu-latest - &base-success-job - if: success() steps: - name: mark the job as a success run: exit 0 <<: *base-outcome-job - &base-failure-job - if: "!success()" steps: - name: mark the job as a failure run: exit 1 @@ -695,13 +693,17 @@ jobs: # successful listening to webhooks only. try-success: needs: [try] + if: "success() && github.event_name == 'push' && github.ref == 'refs/heads/try' && github.repository == 'rust-lang-ci/rust'" <<: *base-success-job try-failure: needs: [try] + if: "!success() && github.event_name == 'push' && github.ref == 'refs/heads/try' && github.repository == 'rust-lang-ci/rust'" <<: *base-failure-job auto-success: needs: [auto] + if: "success() && github.event_name == 'push' && github.ref == 'refs/heads/auto' && github.repository == 'rust-lang-ci/rust'" <<: *base-success-job auto-failure: needs: [auto] + if: "!success() && github.event_name == 'push' && github.ref == 'refs/heads/auto' && github.repository == 'rust-lang-ci/rust'" <<: *base-failure-job |
