fix: modified input to be string instead of boolean since github cannot handle boolean

This commit is contained in:
Ceferino Patino 2025-10-05 13:40:57 -05:00
commit 061b4b9c1a
Signed by: c4patino
SSH key fingerprint: SHA256:Wu+cU1t+7zVT9wzew/4meNmeulo66NzMqc22MdDBgXI

View file

@ -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:
@ -31,6 +31,10 @@ jobs:
with:
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