From 83a8109ec4fba838d770c3a6079b3311c3a98283 Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Sat, 3 Aug 2024 18:35:26 +0100 Subject: [PATCH] ci/update: make steps optional Allow toggling off the flake.lock or generate files steps. --- .github/workflows/update.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 127581e2..c4ca19da 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -6,6 +6,14 @@ on: # Allow manual triggering workflow_dispatch: inputs: + lock: + type: boolean + default: true + description: Update flake.lock + generate: + type: boolean + default: true + description: Update generated files nixos-24.05: type: boolean description: Also update nixos-24.05 @@ -54,6 +62,7 @@ jobs: - name: Update flake.lock id: flake_lock + if: inputs.lock || github.event_name == 'schedule' run: | old=$(git show --no-patch --format=%h) nix flake update --commit-lock-file @@ -66,6 +75,7 @@ jobs: - name: Update generated files id: generate + if: inputs.generate || github.event_name == 'schedule' run: | old=$(git show --no-patch --format=%h) nix-build ./update-scripts -A generate