From 04837d66b3394ebf64032e0023453395a5598998 Mon Sep 17 00:00:00 2001 From: StarrFox Date: Tue, 1 Aug 2023 15:02:32 +0000 Subject: [PATCH] use better lock updater --- .github/workflows/update.yml | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 1c1912f..2f1cc47 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -1,27 +1,18 @@ -name: "Update flake.lock" - +name: update-flake-lock on: + workflow_dispatch: schedule: - cron: "0 1 1 * *" - workflow_dispatch: jobs: - update: + lockfile: runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - + - name: Checkout repository + uses: actions/checkout@v2 - name: Install Nix - uses: DeterminateSystems/nix-installer-action@main - - - run: nix develop --command nix flake update - - - name: Create Pull Request - uses: peter-evans/create-pull-request@v5 + uses: DeterminateSystems/nix-installer-action@v1 + - name: Update flake.lock + uses: DeterminateSystems/update-flake-lock@v19 with: - title: "[CI] Update flake.lock" - branch: update - branch-suffix: timestamp - delete-branch: true - reviewers: vbe0201 + pr-title: "Update flake.lock" # Title of PR to be created