Skip to content

Daily Flake Check

Daily Flake Check #339

name: Daily Flake Check
on:
schedule:
# Run daily at 6 AM UTC
- cron: '0 6 * * *'
# Allow manual trigger
workflow_dispatch:
jobs:
flake-check:
name: Daily Nix Flake Check
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read
issues: write
steps:
- uses: actions/checkout@v5
- name: Check Nix flake inputs
uses: DeterminateSystems/flake-checker-action@main
id: flake-check
with:
fail-mode: true
- name: Create Issue on Failure
if: failure()
env:
GH_TOKEN: ${{ github.token }}
run: |
gh issue create \
--title "[Nix Flake Check] Failed - ${{ github.run_number }}" \
--label "flake,automated,bug" \
--body "$(cat <<'EOF'
The daily Nix flake check has failed.
**Run:** #${{ github.run_number }}
**Date:** ${{ github.event.schedule || 'Manual trigger' }}
Please investigate and update the flake inputs.
[View workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
EOF
)"