@@ -167,7 +167,8 @@ jobs:
167
167
ZULIP_BOT_EMAIL : ${{ secrets.ZULIP_BOT_EMAIL }}
168
168
ZULIP_API_TOKEN : ${{ secrets.ZULIP_API_TOKEN }}
169
169
run : |
170
- ~/.local/bin/zulip-send --stream miri --subject "Cron Job Failure (miri, $(date -u +%Y-%m))" \
170
+ ~/.local/bin/zulip-send --user $ZULIP_BOT_EMAIL --api-key $ZULIP_API_TOKEN --site https://rust-lang.zulipchat.com \
171
+ --stream miri --subject "Cron Job Failure (miri, $(date -u +%Y-%m))" \
171
172
--message 'Dear @*T-miri*,
172
173
173
174
It would appear that the [Miri cron job build]('"https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID"') failed.
@@ -179,8 +180,8 @@ jobs:
179
180
180
181
Thanks in advance!
181
182
Sincerely,
182
- The Miri Cronjobs Bot' \
183
- --user $ZULIP_BOT_EMAIL --api-key $ZULIP_API_TOKEN --site https://rust-lang.zulipchat.com
183
+ The Miri Cronjobs Bot'
184
+
184
185
# Attempt to auto-sync with rustc
185
186
- uses : actions/checkout@v3
186
187
with :
@@ -207,6 +208,12 @@ jobs:
207
208
git switch -c $BRANCH
208
209
git push -u origin $BRANCH
209
210
- name : Create Pull Request
210
- run : gh pr create -B master --title 'Automatic sync from rustc' --body ''
211
+ run : |
212
+ PR=$(gh pr create -B master --title 'Automatic sync from rustc' --body '')
213
+ ~/.local/bin/zulip-send --user $ZULIP_BOT_EMAIL --api-key $ZULIP_API_TOKEN --site https://rust-lang.zulipchat.com \
214
+ --stream miri --subject "Cron Job Failure (miri, $(date -u +%Y-%m))" \
215
+ --message "A PR doing a rustc-pull [has been automatically created]($PR) for your convenience."
211
216
env :
212
217
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
218
+ ZULIP_BOT_EMAIL : ${{ secrets.ZULIP_BOT_EMAIL }}
219
+ ZULIP_API_TOKEN : ${{ secrets.ZULIP_API_TOKEN }}
0 commit comments