Skip to content

Commit

Permalink
workflows/update-flake-lock: can bump specific inputs only if invoked…
Browse files Browse the repository at this point in the history
… manually
  • Loading branch information
JohnRTitor committed Jun 1, 2024
1 parent 0fb9437 commit 834e9a4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/update-flake.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: update-flake-lock
on:
workflow_dispatch: # allows manual triggering
workflow_dispatch:
inputs:
bumpWhat:
description: Which flake input? (leave blank for all)
required: false
type: string

schedule:
- cron: '0 0 * * 0' # runs weekly on Sunday at 00:00
# - cron: '0 0 * * *' # runs everyday at 00:00
Expand All @@ -22,3 +28,5 @@ jobs:
run: nix fmt
- name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@v21
with:
inputs: ${{ inputs.bumpWhat }}

0 comments on commit 834e9a4

Please sign in to comment.