fix: modified input to be string instead of boolean since github cannot handle boolean
This commit is contained in:
parent
cbef1979ee
commit
061b4b9c1a
1 changed files with 13 additions and 9 deletions
22
.github/workflows/format-nix.yml
vendored
22
.github/workflows/format-nix.yml
vendored
|
|
@ -4,15 +4,15 @@ on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
ci_mode:
|
ci_mode:
|
||||||
description: 'Run treefmt with --ci (fail if changes needed)'
|
description: "Run treefmt with --ci (fail if changes needed)"
|
||||||
type: boolean
|
type: string
|
||||||
required: false
|
required: false
|
||||||
default: true
|
default: "true"
|
||||||
commit_changes:
|
commit_changes:
|
||||||
description: 'Commit changes if formatting is needed (only if ci_mode is false)'
|
description: "Commit changes if formatting is needed (only if ci_mode is false)"
|
||||||
type: boolean
|
type: string
|
||||||
required: false
|
required: false
|
||||||
default: false
|
default: "false"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
treefmt:
|
treefmt:
|
||||||
|
|
@ -26,11 +26,15 @@ jobs:
|
||||||
- name: install nix
|
- name: install nix
|
||||||
uses: cachix/install-nix-action@v31.6.1
|
uses: cachix/install-nix-action@v31.6.1
|
||||||
with:
|
with:
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
- uses: cachix/cachix-action@v16
|
- uses: cachix/cachix-action@v16
|
||||||
with:
|
with:
|
||||||
name: nix-community
|
name: nix-community
|
||||||
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
||||||
|
- name: debug inputs
|
||||||
|
run: |
|
||||||
|
echo "ci_mode: ${{ inputs.ci_mode }}"
|
||||||
|
echo "commit_changes: ${{ inputs.commit_changes }}"
|
||||||
- name: treefmt
|
- name: treefmt
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ inputs.ci_mode }}" = "true" ]; then
|
if [ "${{ inputs.ci_mode }}" = "true" ]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue