Skip to content

Commit

Permalink
Renames check-syntax-only to syntax-only
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed Jun 13, 2020
1 parent 1fe3dbc commit f1bb4c5
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Run local action
- name: Run local action (syntax only)
uses: ./
with:
syntax-only: true
verbose: true
- name: Run local action (compile)
uses: ./
with:
verbose: true
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ Whether to ignore compilation warnings.

Specifies log filename for compilation messages.

### `check-syntax-only` (bool)
### `syntax-only` (bool)

Whether to skip generating binary file and only check for syntax errors. Default: *false*.
Whether to skip generating binary file and only check for syntax issues. Default: *false*.

### `verbose` (bool)

Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ inputs:
description: 'Specifies log filename for compilation messages.'
required: false
default: 'mql.log'
check-syntax-only:
description: 'Whether to skip generating binary file and only check for syntax errors'
syntax-only:
description: 'Whether to check for syntax only (no binary file is generated)'
required: false
default: false
verbose:
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9390,7 +9390,7 @@ const realRun = true

const input = realRun
? {
checkSyntaxOnly: (core.getInput('check-syntax-only') || 'false').toUpperCase() === 'TRUE',
checkSyntaxOnly: (core.getInput('syntax-only') || 'false').toUpperCase() === 'TRUE',
compilePath: core.getInput('path'),
ignoreWarnings: (core.getInput('ignore-warnings') || 'false').toUpperCase() === 'TRUE',
logFilePath: core.getInput('log-file'),
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const realRun = true

const input = realRun
? {
checkSyntaxOnly: (core.getInput('check-syntax-only') || 'false').toUpperCase() === 'TRUE',
checkSyntaxOnly: (core.getInput('syntax-only') || 'false').toUpperCase() === 'TRUE',
compilePath: core.getInput('path'),
ignoreWarnings: (core.getInput('ignore-warnings') || 'false').toUpperCase() === 'TRUE',
logFilePath: core.getInput('log-file'),
Expand Down

0 comments on commit f1bb4c5

Please sign in to comment.