Skip to content

Commit

Permalink
Updated 'extra' options and reduced hardcoded arguments in action.yml
Browse files Browse the repository at this point in the history
Removed hardcoded arguments '--ansi' and '-vvv' in action.yml and replaced the 'extra' input field with 'ansi' and 'verbose' inputs. This change provides flexibility and allows users to customize the verbosity level and output format more easily.
  • Loading branch information
SmetDenis committed Mar 29, 2024
1 parent 65f1de1 commit d5b3447
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,16 @@ You can find launch examples in the [workflow demo](https://github.com/JBZoo/Csv
# You can skip it
skip-schema: no

# ANSI output. You can disable ANSI colors if you want with `--no-ansi`.
# Default value: --ansi
# You can skip it
ansi: --ansi

# Verbosity level. Available options: `-v`, `-vv`, `-vvv`. And also there is option `--profile`.
# Default value: -vv
# You can skip it
verbose: -vv

```
<!-- /github-actions-yml -->

Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ inputs:
required: false
verbose:
description: 'Verbosity level. Available options: `-v`, `-vv`, `-vvv`. And also there is option `--profile`.'
default: -vv
default: -vv --profile
required: false

runs:
Expand Down
2 changes: 2 additions & 0 deletions tests/GithubActionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ public function testGitHubActionsReadMe(): void
'report' => ErrorSuite::REPORT_DEFAULT,
'quick' => 'no',
'skip-schema' => 'no',
'ansi' => '--ansi',
'verbose' => '-vv',
];

$expectedMessage = [
Expand Down

0 comments on commit d5b3447

Please sign in to comment.