Skip to content

Commit 163ea33

Browse files
committed
Move TOOLSTATE_REPO to top-level env
1 parent e82c28d commit 163ea33

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/ci.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ defaults:
3434
concurrency:
3535
group: "${{ github.workflow }}-${{ ((github.ref == 'refs/heads/try' || github.ref == 'refs/heads/try-perf') && github.sha) || github.ref }}"
3636
cancel-in-progress: true
37+
env:
38+
TOOLSTATE_REPO: "https://github.com/rust-lang-nursery/rust-toolstate"
3739
jobs:
3840
calculate_matrix:
3941
name: Calculate job matrix
@@ -61,7 +63,6 @@ jobs:
6163
HEAD_SHA: "${{ github.event.pull_request.head.sha || github.sha }}"
6264
DOCKER_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
6365
SCCACHE_BUCKET: rust-lang-ci-sccache2
64-
TOOLSTATE_REPO: "https://github.com/rust-lang-nursery/rust-toolstate"
6566
CACHE_DOMAIN: ci-caches.rust-lang.org
6667
continue-on-error: "${{ matrix.continue_on_error || false }}"
6768
strategy:

src/ci/github-actions/ci.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ concurrency:
8484
group: ${{ github.workflow }}-${{ ((github.ref == 'refs/heads/try' || github.ref == 'refs/heads/try-perf') && github.sha) || github.ref }}
8585
cancel-in-progress: true
8686

87+
env:
88+
TOOLSTATE_REPO: https://github.com/rust-lang-nursery/rust-toolstate
89+
8790
jobs:
8891
# The job matrix for `calculate_matrix` is defined in src/ci/github-actions/jobs.yml.
8992
# It calculates which jobs should be executed, based on the data of the ${{ github }} context.
@@ -114,7 +117,6 @@ jobs:
114117
HEAD_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
115118
DOCKER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
116119
SCCACHE_BUCKET: rust-lang-ci-sccache2
117-
TOOLSTATE_REPO: https://github.com/rust-lang-nursery/rust-toolstate
118120
CACHE_DOMAIN: ci-caches.rust-lang.org
119121
continue-on-error: ${{ matrix.continue_on_error || false }}
120122
strategy:

0 commit comments

Comments
 (0)