-
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (46 loc) · 1.6 KB
/
scheduled-build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Nightly Build
on:
schedule:
# Scheduled to run at the same time every day
- cron: '0 0 * * *'
jobs:
nightly-ci:
name: Build and Test
permissions:
contents: read
security-events: write
actions: read
uses: ./.github/workflows/build-and-test.yaml
create-issue:
name: Create Github Issue
runs-on: ubuntu-latest
continue-on-error: true
needs: [nightly-ci]
if: always() && needs.nightly-ci.result == 'failure'
permissions:
issues: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get date variable
id: variables
run: echo "date=$(date +%F)" >> "${GITHUB_OUTPUT}"
- name: Create issue or comment
uses: bitwizeshift/actions-github/issues/create-or-comment@v1
with:
title: ${{ github.workflow }} failed
body: |
⚠️ The nightly CI workflow run on ${{ steps.variables.outputs.date }} failed!
### Useful Links
* [📖 Github Workflow Logs](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
* [🔀 Failing commit](${{ github.server_url }}/${{ github.repository }}/commit/${{github.sha}})
### Suggested Fixes
* Investigate test run failures
* Rerun the workflow to check for flaky tests
* Check linker outputs
* Revert commit that triggered failure
* Update to the latest toolchain or dependencies
labels: |
nightly-ci-failed
triage-required
assignees: bitwizeshift