From 92f29703ff33ba5f159b5ff154095e94464e60c4 Mon Sep 17 00:00:00 2001 From: Peter Becich Date: Fri, 27 Dec 2024 22:39:15 -0800 Subject: [PATCH] GitHub Action to update Nix Flake lock using https://github.com/DeterminateSystems/update-flake-lock --- .github/workflows/update-flake-lock.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/update-flake-lock.yml diff --git a/.github/workflows/update-flake-lock.yml b/.github/workflows/update-flake-lock.yml new file mode 100644 index 00000000..320ffdab --- /dev/null +++ b/.github/workflows/update-flake-lock.yml @@ -0,0 +1,22 @@ +# https://github.com/DeterminateSystems/update-flake-lock +name: update-flake-lock +on: + workflow_dispatch: # allows manual triggering + schedule: + - cron: '0 0 1 * *' # runs on first day of the month + +jobs: + lockfile: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Install Nix + uses: DeterminateSystems/nix-installer-action@main + - name: Update flake.lock + uses: DeterminateSystems/update-flake-lock@main + with: + pr-title: "Update flake.lock" # Title of PR to be created + pr-labels: | # Labels to be set on the PR + dependencies + automated