Skip to content

Commit eee275a

Browse files
committed
Use strings as inputs
1 parent 7cfe68f commit eee275a

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

action.yml

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,25 @@ inputs:
1111
description: 'Pattern for excluding files (e.g. "*/test/*")'
1212
include-cpp:
1313
description: 'Include .cpp files'
14-
default: false
15-
type: boolean
14+
default: 'false'
1615
access-level:
1716
description: 'The minimum access level to be considered in the documentation'
1817
default: 'public'
1918
show-access-modifiers:
2019
description: 'Show access modifiers in the documentation'
21-
default: false
22-
type: boolean
20+
default: 'false'
2321
fail-on-warnings:
2422
description: 'Fail when documentation warnings are issued.'
25-
default: false
26-
type: boolean
23+
default: 'false'
2724
commit:
2825
description: 'Boolean flag to indicate whether to commit changes'
29-
default: true
30-
type: boolean
26+
default: 'true'
3127
commit-message:
3228
description: 'Commit message'
3329
default: 'Update documentation'
3430
debug:
3531
description: 'Enable debugging mode to provide additional output'
36-
default: false
37-
type: boolean
32+
default: 'false'
3833

3934
runs:
4035
using: "composite"
@@ -79,11 +74,11 @@ runs:
7974
${{ inputs.source-path }} \
8075
${{ inputs.target-path }} \
8176
${{ inputs.exclude-pattern && format('--exclude {0}', inputs.exclude-pattern) || '' }} \
82-
${{ inputs.include-cpp == true && '--include-cpp' || '' }} \
83-
${{ inputs.show-access-modifiers == true && '--show-access-modifiers' || '' }} \
77+
${{ inputs.include-cpp == 'true' && '--include-cpp' || '' }} \
78+
${{ inputs.show-access-modifiers == 'true' && '--show-access-modifiers' || '' }} \
8479
${{ inputs.access-level && format('--access-level {0}', inputs.access-level) || '' }} \
85-
${{ inputs.fail-on-warnings == true && '--fail-on-warnings' || '' }} \
86-
${{ inputs.debug == true && '--debug ' || '' }}
80+
${{ inputs.fail-on-warnings == 'true' && '--fail-on-warnings' || '' }} \
81+
${{ inputs.debug == 'true' && '--debug ' || '' }}
8782
8883
- name: Commit Docs
8984
if: inputs.commit

0 commit comments

Comments
 (0)