Nightly Build #256
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |