diff options
| author | Jakub Beránek <berykubik@gmail.com> | 2024-04-23 15:16:21 +0200 |
|---|---|---|
| committer | Jakub Beránek <berykubik@gmail.com> | 2024-04-25 10:40:09 +0200 |
| commit | 144bdf5bf1a722fc73f8bd24fa05c5cbb2845701 (patch) | |
| tree | 4c1123bfb5cb010833c444b1c70eee0910b4266b /src/ci/github-actions | |
| parent | 865808b33bfc7861c28ba6111ed4eac45cbeeeb4 (diff) | |
| download | rust-144bdf5bf1a722fc73f8bd24fa05c5cbb2845701.tar.gz rust-144bdf5bf1a722fc73f8bd24fa05c5cbb2845701.zip | |
Remove `master` CI job
Diffstat (limited to 'src/ci/github-actions')
| -rw-r--r-- | src/ci/github-actions/ci.yml | 28 |
1 files changed, 9 insertions, 19 deletions
diff --git a/src/ci/github-actions/ci.yml b/src/ci/github-actions/ci.yml index bc4b1b815cf..081e5ed21e0 100644 --- a/src/ci/github-actions/ci.yml +++ b/src/ci/github-actions/ci.yml @@ -351,24 +351,6 @@ jobs: # This hack is taken from https://github.com/ferrocene/ferrocene/blob/d43edc6b7697cf1719ec1c17c54904ab94825763/.github/workflows/release.yml#L75-L82 if: fromJSON(needs.calculate_matrix.outputs.jobs)[0] != null - master: - name: master - runs-on: ubuntu-latest - env: - <<: [*prod-variables] - if: github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'rust-lang-ci/rust' - steps: - - name: checkout the source code - uses: actions/checkout@v4 - with: - fetch-depth: 2 - - - name: publish toolstate - run: src/ci/publish_toolstate.sh - shell: bash - env: - TOOLSTATE_REPO_ACCESS_TOKEN: ${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }} - # These jobs don't actually test anything, but they're used to tell bors the # build completed, as there is no practical way to detect when a workflow is # successful listening to webhooks only. @@ -383,7 +365,15 @@ jobs: auto-success: needs: [ job ] if: "success() && github.event_name == 'push' && github.ref == 'refs/heads/auto' && github.repository == 'rust-lang-ci/rust'" - <<: *base-success-job + <<: *base-outcome-job + steps: + - name: publish toolstate + run: src/ci/publish_toolstate.sh + shell: bash + if: success() && (github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1') + env: + TOOLSTATE_REPO_ACCESS_TOKEN: ${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }} + auto-failure: needs: [ job ] if: "!success() && github.event_name == 'push' && github.ref == 'refs/heads/auto' && github.repository == 'rust-lang-ci/rust'" |
