Skip to content

Commit

Permalink
ci/update: make steps optional
Browse files Browse the repository at this point in the history
Allow toggling off the flake.lock or generate files steps.
  • Loading branch information
MattSturgeon committed Aug 3, 2024
1 parent d3cb750 commit 83a8109
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 83a8109

Please sign in to comment.