From f8fc87908360957d43e4b9de504f76520d519877 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Tue, 14 Jan 2025 13:19:06 -0600 Subject: [PATCH] add flake-input input to update workflow --- .github/workflows/update.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 21e3899..b949094 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -8,6 +8,10 @@ on: required: true default: "othalan,algiz" type: string + flake-inputs: + description: "list of nix flake inputs" + default: "" + type: "string" # schedule: # # At minute 00:00 on Monday, Wednesday, and Friday. @@ -15,6 +19,7 @@ on: env: hosts: ${{ github.event_name == 'schedule' && 'othalan,algiz' || github.event.inputs.hosts }} + flake-inputs: ${{ github.event_name == 'flake-inputs' && '' || github.event.inputs.flake-inputs }} permissions: contents: write @@ -39,7 +44,7 @@ jobs: - name: Update nix flake run: | - nix flake update --commit-lock-file + nix flake update --commit-lock-file "${{ env.flake-inputs }}" printf '# Flake Lock\n\n```txt\n%s```\n' \ "$(git show -s --format='%B')" \ >> $GITHUB_STEP_SUMMARY