@@ -167,7 +167,8 @@ jobs:
167167 ZULIP_BOT_EMAIL : ${{ secrets.ZULIP_BOT_EMAIL }}
168168 ZULIP_API_TOKEN : ${{ secrets.ZULIP_API_TOKEN }}
169169 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))" \
171172 --message 'Dear @*T-miri*,
172173
173174 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:
179180
180181 Thanks in advance!
181182 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+
184185 # Attempt to auto-sync with rustc
185186 - uses : actions/checkout@v3
186187 with :
@@ -207,6 +208,12 @@ jobs:
207208 git switch -c $BRANCH
208209 git push -u origin $BRANCH
209210 - 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."
211216 env :
212217 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
218+ ZULIP_BOT_EMAIL : ${{ secrets.ZULIP_BOT_EMAIL }}
219+ ZULIP_API_TOKEN : ${{ secrets.ZULIP_API_TOKEN }}
0 commit comments