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

Commit 6958308

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

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/ci.yml

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

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

0 commit comments

Comments
 (0)