From 56aa49da20039c2d48f5a2e4e666284a05b6a4c1 Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Sat, 28 Sep 2024 07:34:20 -0400 Subject: [PATCH] ci(nix): add auto flake update [skip ci] --- .github/renovate.json | 1 - .github/workflows/update-nix-flakes.yml | 25 +++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/update-nix-flakes.yml diff --git a/.github/renovate.json b/.github/renovate.json index 3dad82e3ecb1..7a79f7e4b0ea 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -12,7 +12,6 @@ ], "automerge": false, "labels": ["dependencies"], - "nix": { "enabled": true }, "packageRules": [ { "matchManagers": ["docker-compose", "dockerfile", "github-actions"], diff --git a/.github/workflows/update-nix-flakes.yml b/.github/workflows/update-nix-flakes.yml new file mode 100644 index 000000000000..03de7255490d --- /dev/null +++ b/.github/workflows/update-nix-flakes.yml @@ -0,0 +1,25 @@ +name: update-flake-lock +on: + workflow_dispatch: + schedule: + - cron: "0 0 * * 0" # once a week + +jobs: + lockfile: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: install nix + uses: DeterminateSystems/nix-installer-action@v14 + + - uses: actions/create-github-app-token@v1.11.0 + id: generate-token + with: + app-id: ${{ secrets.SQUAWK_BOT_APP_ID }} + private-key: ${{ secrets.SQUAWK_BOT_APP_PRIVATE_KEY }} + + - name: update flake.lock + uses: DeterminateSystems/update-flake-lock@v24 + with: + token: ${{ steps.generate-token.outputs.token }}