From e6b452ce356e5bf0420ae92457ba2b23c539f3dc Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Fri, 15 Sep 2023 14:42:05 +0200 Subject: [PATCH] ci: switch to `renovate` for `flake.lock` updates --- .github/renovate.json | 12 ++++++++++++ .github/workflows/upgrade-flakes.yaml | 18 ------------------ 2 files changed, 12 insertions(+), 18 deletions(-) create mode 100644 .github/renovate.json delete mode 100644 .github/workflows/upgrade-flakes.yaml diff --git a/.github/renovate.json b/.github/renovate.json new file mode 100644 index 00000000..465b0c29 --- /dev/null +++ b/.github/renovate.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": ["config:base"], + "nix": { + "enabled": true + }, + "lockFileMaintenance": { + "enabled": true, + "automerge": true + }, + "schedule": ["after 11pm and before 4am every sunday"] +} diff --git a/.github/workflows/upgrade-flakes.yaml b/.github/workflows/upgrade-flakes.yaml deleted file mode 100644 index 4e4e0b9d..00000000 --- a/.github/workflows/upgrade-flakes.yaml +++ /dev/null @@ -1,18 +0,0 @@ -name: Update Flake lockfile -on: - workflow_dispatch: # allows manual triggering - schedule: - - cron: "51 2 * * 0" - -jobs: - lockfile: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Install Nix - uses: cachix/install-nix-action@v22 - - - name: Update flake.lock - uses: DeterminateSystems/update-flake-lock@v19