From 6c165a26761225f79acb2d0262ee3c2912c3ebe5 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Tue, 8 Aug 2023 14:54:16 +0300 Subject: [PATCH] should work now --- .github/workflows/flake-update.yml | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/.github/workflows/flake-update.yml b/.github/workflows/flake-update.yml index 30fb62c4..116fc55a 100644 --- a/.github/workflows/flake-update.yml +++ b/.github/workflows/flake-update.yml @@ -1,21 +1,25 @@ -name: update-flake-lock +name: Flake Lock Updater + on: - workflow_dispatch: # allows manual triggering schedule: - - cron: "0 0 * * 0" # runs weekly on Sunday at 00:00 + # Pi o'clock + - cron: "0 0 * * 0" + workflow_dispatch: jobs: - lockfile: - runs-on: ubuntu-latest + lock-updater: + name: Flake Lock Updater + runs-on: ubuntu-22.04 steps: - - name: Checkout repository - uses: actions/checkout@v3 - - name: Install Nix - uses: DeterminateSystems/nix-installer-action@v4 - - name: Update flake.lock - uses: DeterminateSystems/update-flake-lock@v19 + - uses: actions/checkout@v3 with: - pr-title: "chore: Update flake.lock" # Title of PR to be created - pr-labels: | # Labels to be set on the PR + fetch-depth: 0 + - uses: DeterminateSystems/nix-installer-action@v4 + - uses: DeterminateSystems/magic-nix-cache-action@v2 + - uses: DeterminateSystems/update-flake-lock@v19 + with: + pr-title: "chore: update flake.lock" + # Labels to be set on the PR + pr-labels: | dependencies automated