From 2fa9492b9e2b835df0c553d06d241e6164241414 Mon Sep 17 00:00:00 2001 From: William Hsieh Date: Thu, 25 Jan 2024 13:38:58 +0800 Subject: [PATCH] ci: add update flake lock --- .github/workflows/update.yml | 21 +++++++++++++++++++++ 1 file changed, 21 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 00000000..a27f2258 --- /dev/null +++ b/.github/workflows/update.yml @@ -0,0 +1,21 @@ +name: update-flake-lock +on: + workflow_dispatch: + schedule: + - cron: '0 6 * * 1' + +jobs: + lockfile: + runs-on: ubuntu-22.04 + + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Install Nix + uses: DeterminateSystems/nix-installer-action@v9 + - name: Enable magic Nix cache + uses: DeterminateSystems/magic-nix-cache-action@v2 + - name: Check flake + uses: DeterminateSystems/flake-checker-action@v5 + - name: Update flake.lock + uses: DeterminateSystems/update-flake-lock@v20