Skip to content

Commit 2b3fae1

Browse files
committed
Auto merge of rust-lang#2957 - RalfJung:zulip, r=oli-obk
send link to PR to Zulip
2 parents 89c2596 + 4951d5f commit 2b3fae1

File tree

1 file changed

+11
-5
lines changed
  • src/tools/miri/.github/workflows

1 file changed

+11
-5
lines changed

src/tools/miri/.github/workflows/ci.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ jobs:
135135
# workflow is successful listening to webhooks only.
136136
#
137137
# 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.)
139138
end-success:
140139
name: bors build finished
141140
runs-on: ubuntu-latest
@@ -167,7 +166,8 @@ jobs:
167166
ZULIP_BOT_EMAIL: ${{ secrets.ZULIP_BOT_EMAIL }}
168167
ZULIP_API_TOKEN: ${{ secrets.ZULIP_API_TOKEN }}
169168
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))" \
171171
--message 'Dear @*T-miri*,
172172
173173
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:
179179
180180
Thanks in advance!
181181
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+
184184
# Attempt to auto-sync with rustc
185185
- uses: actions/checkout@v3
186186
with:
@@ -207,6 +207,12 @@ jobs:
207207
git switch -c $BRANCH
208208
git push -u origin $BRANCH
209209
- 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."
211215
env:
212216
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
217+
ZULIP_BOT_EMAIL: ${{ secrets.ZULIP_BOT_EMAIL }}
218+
ZULIP_API_TOKEN: ${{ secrets.ZULIP_API_TOKEN }}

0 commit comments

Comments
 (0)