@@ -253,6 +253,13 @@ x--expand-yaml-anchors--remove:
253
253
# erroring about invalid credentials instead.
254
254
if : success() && (github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1')
255
255
256
+ - name : publish toolstate
257
+ run : src/ci/publish_toolstate.sh
258
+ shell : bash
259
+ if : success() && (github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1') && github.ref == 'refs/heads/auto' && github.repository == 'rust-lang-ci/rust'
260
+ env :
261
+ TOOLSTATE_REPO_ACCESS_TOKEN : ${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}
262
+
256
263
# These snippets are used by the try-success, try-failure, auto-success and auto-failure jobs.
257
264
# Check out their documentation for more information on why they're needed.
258
265
@@ -351,24 +358,6 @@ jobs:
351
358
# This hack is taken from https://github.com/ferrocene/ferrocene/blob/d43edc6b7697cf1719ec1c17c54904ab94825763/.github/workflows/release.yml#L75-L82
352
359
if : fromJSON(needs.calculate_matrix.outputs.jobs)[0] != null
353
360
354
- master :
355
- name : master
356
- runs-on : ubuntu-latest
357
- env :
358
- << : [*prod-variables]
359
- if : github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'rust-lang-ci/rust'
360
- steps :
361
- - name : checkout the source code
362
- uses : actions/checkout@v4
363
- with :
364
- fetch-depth : 2
365
-
366
- - name : publish toolstate
367
- run : src/ci/publish_toolstate.sh
368
- shell : bash
369
- env :
370
- TOOLSTATE_REPO_ACCESS_TOKEN : ${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}
371
-
372
361
# These jobs don't actually test anything, but they're used to tell bors the
373
362
# build completed, as there is no practical way to detect when a workflow is
374
363
# successful listening to webhooks only.
0 commit comments