From 2653c69ccacb63f59b3aafd029e2838269c4c511 Mon Sep 17 00:00:00 2001
From: zowoq <59103226+zowoq@users.noreply.github.com>
Date: Fri, 10 Nov 2023 18:28:41 +1000
Subject: [PATCH] .github/workflows/flake-updates-input.yml: rename, add input

---
 ...pdates-nixpkgs-update.yml => flake-updates-input.yml} | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
 rename .github/workflows/{flake-updates-nixpkgs-update.yml => flake-updates-input.yml} (78%)

diff --git a/.github/workflows/flake-updates-nixpkgs-update.yml b/.github/workflows/flake-updates-input.yml
similarity index 78%
rename from .github/workflows/flake-updates-nixpkgs-update.yml
rename to .github/workflows/flake-updates-input.yml
index 1903b71..4718026 100644
--- a/.github/workflows/flake-updates-nixpkgs-update.yml
+++ b/.github/workflows/flake-updates-input.yml
@@ -1,7 +1,12 @@
-name: "Update flakes - nixpkgs-update"
+name: "Update flakes - input"
 on:
   repository_dispatch:
   workflow_dispatch:
+    inputs:
+      flakeInput:
+        description: "flake input to update"
+        required: true
+        type: string
 jobs:
   createPullRequest:
     runs-on: ubuntu-latest
@@ -17,7 +22,7 @@ jobs:
         id: update
         uses: DeterminateSystems/update-flake-lock@v20
         with:
-          inputs: nixpkgs-update
+          inputs: ${{ inputs.flakeInput }}
       - name: Enable Automerge
         run: gh pr merge --rebase --auto "${{ steps.update.outputs.pull-request-number }}"
         env: