added testing actions

This commit is contained in:
Lily Miller
2025-12-03 14:53:13 -07:00
parent 28ab585a34
commit b4923858d2
2 changed files with 57 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
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