From 59c8e27fec273b9c3da023a5ee19548c298cdcfc Mon Sep 17 00:00:00 2001 From: Viktor Kleen Date: Mon, 28 Aug 2023 10:56:03 +0000 Subject: [PATCH] Add a GitHub action to update flake.lock --- .github/workflows/update-flake-lock.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 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 0000000..86ccd8a --- /dev/null +++ b/.github/workflows/update-flake-lock.yml @@ -0,0 +1,24 @@ +name: update-flake-lock +on: + workflow_dispatch: # allows manual triggering + schedule: + - cron: '0 0 * * 0' # runs weekly on Sunday at 00:00 + +jobs: + lockfile: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + - name: Install Nix + uses: cachix/install-nix-action@v22 + with: + extra_nix_config: | + access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} + - name: Update flake.lock + uses: DeterminateSystems/update-flake-lock@v20 + with: + # Providing a secret token is necessary for the PRs to run CI + # See https://github.com/DeterminateSystems/update-flake-lock#with-a-personal-authentication-token + token: ${{ secrets.GH_TOKEN_FOR_UPDATES }} +