File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,13 @@ jobs:
169
169
run : rustup toolchain install nightly --profile minimal
170
170
- name : Install rustup-toolchain-install-master
171
171
run : cargo install -f rustup-toolchain-install-master
172
- - name : Push changes to a branch and create PR
172
+ # Create a token for the next step so it can create a PR that actually runs CI.
173
+ - uses : actions/create-github-app-token@v2
174
+ id : app-token
175
+ with :
176
+ app-id : ${{ vars.APP_CLIENT_ID }}
177
+ private-key : ${{ secrets.APP_PRIVATE_KEY }}
178
+ - name : pull changes from rustc and create PR
173
179
run : |
174
180
# Make it easier to see what happens.
175
181
set -x
@@ -200,7 +206,7 @@ jobs:
200
206
git push -u origin $BRANCH
201
207
gh pr create -B master --title 'Automatic Rustup' --body 'Please close and re-open this PR to trigger CI, then enable auto-merge.'
202
208
env :
203
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
209
+ GITHUB_TOKEN : ${{ steps.app-token.outputs.token }}
204
210
205
211
cron-fail-notify :
206
212
name : cronjob failure notification
Original file line number Diff line number Diff line change @@ -50,9 +50,6 @@ new_pr = true
50
50
[autolabel ."S-waiting-on-author" ]
51
51
new_draft = true
52
52
53
- # Automatically close and reopen PRs made by bots to run CI on them
54
- [bot-pull-requests ]
55
-
56
53
# Canonicalize issue numbers to avoid closing the wrong issue when upstreaming this subtree
57
54
[canonicalize-issue-links ]
58
55
You can’t perform that action at this time.
0 commit comments