mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-26 18:58:43 +02:00
ci/update: make steps optional
Allow toggling off the flake.lock or generate files steps.
This commit is contained in:
parent
d3cb750e6a
commit
83a8109ec4
1 changed files with 10 additions and 0 deletions
10
.github/workflows/update.yml
vendored
10
.github/workflows/update.yml
vendored
|
@ -6,6 +6,14 @@ on:
|
||||||
# Allow manual triggering
|
# Allow manual triggering
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
|
lock:
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
|
description: Update flake.lock
|
||||||
|
generate:
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
|
description: Update generated files
|
||||||
nixos-24.05:
|
nixos-24.05:
|
||||||
type: boolean
|
type: boolean
|
||||||
description: Also update nixos-24.05
|
description: Also update nixos-24.05
|
||||||
|
@ -54,6 +62,7 @@ jobs:
|
||||||
|
|
||||||
- name: Update flake.lock
|
- name: Update flake.lock
|
||||||
id: flake_lock
|
id: flake_lock
|
||||||
|
if: inputs.lock || github.event_name == 'schedule'
|
||||||
run: |
|
run: |
|
||||||
old=$(git show --no-patch --format=%h)
|
old=$(git show --no-patch --format=%h)
|
||||||
nix flake update --commit-lock-file
|
nix flake update --commit-lock-file
|
||||||
|
@ -66,6 +75,7 @@ jobs:
|
||||||
|
|
||||||
- name: Update generated files
|
- name: Update generated files
|
||||||
id: generate
|
id: generate
|
||||||
|
if: inputs.generate || github.event_name == 'schedule'
|
||||||
run: |
|
run: |
|
||||||
old=$(git show --no-patch --format=%h)
|
old=$(git show --no-patch --format=%h)
|
||||||
nix-build ./update-scripts -A generate
|
nix-build ./update-scripts -A generate
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue