@@ -135,7 +135,6 @@ jobs:
135
135
# workflow is successful listening to webhooks only.
136
136
#
137
137
# ALL THE PREVIOUS JOBS NEED TO BE ADDED TO THE `needs` SECTION OF THIS JOB!
138
- # (`fmt` is deliberately not listed, we want bors to ignore it.)
139
138
end-success :
140
139
name : bors build finished
141
140
runs-on : ubuntu-latest
@@ -167,7 +166,8 @@ jobs:
167
166
ZULIP_BOT_EMAIL : ${{ secrets.ZULIP_BOT_EMAIL }}
168
167
ZULIP_API_TOKEN : ${{ secrets.ZULIP_API_TOKEN }}
169
168
run : |
170
- ~/.local/bin/zulip-send --stream miri --subject "Cron Job Failure (miri, $(date -u +%Y-%m))" \
169
+ ~/.local/bin/zulip-send --user $ZULIP_BOT_EMAIL --api-key $ZULIP_API_TOKEN --site https://rust-lang.zulipchat.com \
170
+ --stream miri --subject "Cron Job Failure (miri, $(date -u +%Y-%m))" \
171
171
--message 'Dear @*T-miri*,
172
172
173
173
It would appear that the [Miri cron job build]('"https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID"') failed.
@@ -179,8 +179,8 @@ jobs:
179
179
180
180
Thanks in advance!
181
181
Sincerely,
182
- The Miri Cronjobs Bot' \
183
- --user $ZULIP_BOT_EMAIL --api-key $ZULIP_API_TOKEN --site https://rust-lang.zulipchat.com
182
+ The Miri Cronjobs Bot'
183
+
184
184
# Attempt to auto-sync with rustc
185
185
- uses : actions/checkout@v3
186
186
with :
@@ -207,6 +207,12 @@ jobs:
207
207
git switch -c $BRANCH
208
208
git push -u origin $BRANCH
209
209
- name : Create Pull Request
210
- run : gh pr create -B master --title 'Automatic sync from rustc' --body ''
210
+ run : |
211
+ PR=$(gh pr create -B master --title 'Automatic sync from rustc' --body '')
212
+ ~/.local/bin/zulip-send --user $ZULIP_BOT_EMAIL --api-key $ZULIP_API_TOKEN --site https://rust-lang.zulipchat.com \
213
+ --stream miri --subject "Cron Job Failure (miri, $(date -u +%Y-%m))" \
214
+ --message "A PR doing a rustc-pull [has been automatically created]($PR) for your convenience."
211
215
env :
212
216
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
217
+ ZULIP_BOT_EMAIL : ${{ secrets.ZULIP_BOT_EMAIL }}
218
+ ZULIP_API_TOKEN : ${{ secrets.ZULIP_API_TOKEN }}
0 commit comments