From 67a794594bd74c71cd1524eeecf26a85b928e690 Mon Sep 17 00:00:00 2001 From: Zachary Myers Date: Tue, 2 Apr 2024 23:42:31 -0400 Subject: [PATCH] Create update.yml --- .github/workflows/update.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/update.yml diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml new file mode 100644 index 0000000..addc6c6 --- /dev/null +++ b/.github/workflows/update.yml @@ -0,0 +1,28 @@ +name: update-flake + +on: + schedule: + - cron: "0 0 * * *" + workflow_dispatch: + +jobs: + update-flake: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4.0.0 + + - name: "Install Nix ❄️" + uses: cachix/install-nix-action@v23 + + - name: "Update flake.lock ❄️" + run: | + nix flake update + + - name: "Commit and push" + uses: EndBug/add-and-commit@v9 + with: + add: "flake.lock" + default_author: github_actions + message: "chore: update flake.lock" +