From 061b4b9c1ad5e9cb7608ed10744910c13a366e25 Mon Sep 17 00:00:00 2001 From: C4 Patino Date: Sun, 5 Oct 2025 13:40:57 -0500 Subject: [PATCH] fix: modified input to be string instead of boolean since github cannot handle boolean --- .github/workflows/format-nix.yml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/format-nix.yml b/.github/workflows/format-nix.yml index f7f42de..f534abb 100644 --- a/.github/workflows/format-nix.yml +++ b/.github/workflows/format-nix.yml @@ -4,15 +4,15 @@ on: workflow_call: inputs: ci_mode: - description: 'Run treefmt with --ci (fail if changes needed)' - type: boolean + description: "Run treefmt with --ci (fail if changes needed)" + type: string required: false - default: true + default: "true" commit_changes: - description: 'Commit changes if formatting is needed (only if ci_mode is false)' - type: boolean + description: "Commit changes if formatting is needed (only if ci_mode is false)" + type: string required: false - default: false + default: "false" jobs: treefmt: @@ -26,11 +26,15 @@ jobs: - name: install nix uses: cachix/install-nix-action@v31.6.1 with: - nix_path: nixpkgs=channel:nixos-unstable + nix_path: nixpkgs=channel:nixos-unstable - uses: cachix/cachix-action@v16 with: - name: nix-community - authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" + name: nix-community + authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" + - name: debug inputs + run: | + echo "ci_mode: ${{ inputs.ci_mode }}" + echo "commit_changes: ${{ inputs.commit_changes }}" - name: treefmt run: | if [ "${{ inputs.ci_mode }}" = "true" ]; then