From f3d81b82f070b7c5d76753a4f969e770006d2127 Mon Sep 17 00:00:00 2001 From: Reed Krantz Date: Sun, 19 Apr 2026 18:22:52 -0500 Subject: [PATCH] feat(rust): add flake-update.yaml gitea workflow --- rust/.gitea/workflows/flake-update.yaml | 30 +++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 rust/.gitea/workflows/flake-update.yaml diff --git a/rust/.gitea/workflows/flake-update.yaml b/rust/.gitea/workflows/flake-update.yaml new file mode 100644 index 0000000..2055915 --- /dev/null +++ b/rust/.gitea/workflows/flake-update.yaml @@ -0,0 +1,30 @@ +name: "Flake.lock: update Nix dependencies for development environment only" + +on: + workflow_dispatch: # allows manual triggering + schedule: + - cron: '00 00 01 1/2 *' # runs the first of day the month every 2 months at 7:00pm local time (midnight UTC) + +jobs: + nix-flake-update: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: "install nix" + uses: cachix/install-nix-action@v31 + + - name: "setup git user" + uses: fregante/setup-git-user@v2 + + - name: "update flake.lock" + run: | + nix flake update --commit-lock-file + + - name: "check flake for errors" + run: | + nix flake check + + - name: "push update" + run: | + git push