Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit 7311a9c

Browse files
committed
Create an issue on nightly CI run failure
1 parent 71d2bb1 commit 7311a9c

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,35 @@ jobs:
4343
- name: Run tests
4444
run: sh ci/run.sh ${{ matrix.os }}
4545

46+
create_issue:
47+
runs-on: ubuntu-latest
48+
# the combination of these two lines seems to do the "if build_and_test failed, run this one"
49+
needs: build_and_test
50+
if: always() && github.event_name == 'schedule' && needs.build_and_test.result == 'failure'
51+
52+
steps:
53+
- name: Get today's date
54+
id: date
55+
run: |
56+
echo "::set-output name=today::$(date "+%Y-%m-%d")"
57+
58+
- name: Create an issue
59+
60+
uses: actions-ecosystem/action-create-issue@v1
61+
with:
62+
github_token: ${{ secrets.github_token }}
63+
title: Nightly CI run failed
64+
body: |
65+
The nightly CI run on ${{ steps.date.outputs.today }} seems
66+
to have failed.
67+
68+
- Check the logs at https://github.com/rust-lang/rust-semverver/actions/runs/${{ github.run_id }}
69+
- Update to the latest `rustc-nightly` if necessary
70+
- Investigate test run failures if any
71+
72+
labels: |
73+
nightly-CI-failed
74+
4675
# https://forge.rust-lang.org/infra/docs/bors.html#adding-a-new-repository-to-bors
4776
build_result:
4877
name: bors build finished

0 commit comments

Comments
 (0)