name: Nix Flake Update on: schedule: - cron: "0 3 * * *" workflow_dispatch: {} jobs: update: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: DeterminateSystems/nix-installer-action@main - name: Update flake inputs run: nix flake update - name: Commit and push changes run: | git diff --quiet flake.lock && echo "No changes" && exit 0 git config user.name "Gitea Actions" git config user.email "actions@gitea.local" git add flake.lock git commit -m "chore: nix flake update $(date -I)" git push