Auto merge of #125145 - Kobzol:ci-toolstate, r=Mark-Simulacrum
CI: fix toolstate publishing Toolstate publishing after something broke was not working (discovered [here](https://github.com/rust-lang/rust/pull/124050#issuecomment-2111292015)). The toolstate env. vars should only be needed for the publishing step, so I moved them there. The toolstate script is also being checked in `mingw-check` on PR and auto CI, but it doesn't really seem to do anything, and it shouldn't require the token.
This commit is contained in:
commit
84b9b6d16c
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@ -190,7 +190,6 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
AWS_ACCESS_KEY_ID: ${{ env.CACHES_AWS_ACCESS_KEY_ID }}
|
AWS_ACCESS_KEY_ID: ${{ env.CACHES_AWS_ACCESS_KEY_ID }}
|
||||||
AWS_SECRET_ACCESS_KEY: ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.CACHES_AWS_ACCESS_KEY_ID)] }}
|
AWS_SECRET_ACCESS_KEY: ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.CACHES_AWS_ACCESS_KEY_ID)] }}
|
||||||
TOOLSTATE_REPO_ACCESS_TOKEN: ${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}
|
|
||||||
|
|
||||||
- name: create github artifacts
|
- name: create github artifacts
|
||||||
run: src/ci/scripts/create-doc-artifacts.sh
|
run: src/ci/scripts/create-doc-artifacts.sh
|
||||||
@ -241,3 +240,5 @@ jobs:
|
|||||||
if: needs.calculate_matrix.outputs.run_type == 'auto'
|
if: needs.calculate_matrix.outputs.run_type == 'auto'
|
||||||
env:
|
env:
|
||||||
TOOLSTATE_REPO_ACCESS_TOKEN: ${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}
|
TOOLSTATE_REPO_ACCESS_TOKEN: ${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}
|
||||||
|
TOOLSTATE_ISSUES_API_URL: https://api.github.com/repos/rust-lang/rust/issues
|
||||||
|
TOOLSTATE_PUBLISH: 1
|
||||||
|
@ -50,8 +50,6 @@ envs:
|
|||||||
production:
|
production:
|
||||||
&production
|
&production
|
||||||
DEPLOY_BUCKET: rust-lang-ci2
|
DEPLOY_BUCKET: rust-lang-ci2
|
||||||
TOOLSTATE_ISSUES_API_URL: https://api.github.com/repos/rust-lang/rust/issues
|
|
||||||
TOOLSTATE_PUBLISH: 1
|
|
||||||
# AWS_SECRET_ACCESS_KEYs are stored in GitHub's secrets storage, named
|
# AWS_SECRET_ACCESS_KEYs are stored in GitHub's secrets storage, named
|
||||||
# AWS_SECRET_ACCESS_KEY_<keyid>. Including the key id in the name allows to
|
# AWS_SECRET_ACCESS_KEY_<keyid>. Including the key id in the name allows to
|
||||||
# rotate them in a single branch while keeping the old key in another
|
# rotate them in a single branch while keeping the old key in another
|
||||||
|
@ -3,8 +3,7 @@
|
|||||||
|
|
||||||
# This script computes the new "current" toolstate for the toolstate repo (not to be
|
# This script computes the new "current" toolstate for the toolstate repo (not to be
|
||||||
# confused with publishing the test results, which happens in `src/bootstrap/toolstate.rs`).
|
# confused with publishing the test results, which happens in `src/bootstrap/toolstate.rs`).
|
||||||
# It gets called from `src/ci/publish_toolstate.sh` when a new commit lands on `master`
|
# It gets called from `src/ci/publish_toolstate.sh` at the end of an `auto` build.
|
||||||
# (i.e., after it passed all checks on `auto`).
|
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user