name: Update Flake on: workflow_dispatch: schedule: - cron: '0 23 * * *' jobs: update_flake: runs-on: nixos steps: - name: Prevent re-runs run: | if [ "$GITHUB_RUN_ATTEMPT" -gt 1 ]; then echo "No re-runs for you. Go away." exit 1 else echo "not a re-run" fi - name: Checkout Code uses: actions/checkout@v4 - name: Update Flake run: /run/current-system/sw/bin/nix --extra-experimental-features nix-command --extra-experimental-features flakes flake update --refresh --commit-lock-file --verbose - name: Push Changes run: git push