From f1bb4c5c0b8361b3e54e1a03d16f5cdc8e0b7869 Mon Sep 17 00:00:00 2001 From: kenorb Date: Sat, 13 Jun 2020 17:11:51 +0100 Subject: [PATCH] Renames check-syntax-only to syntax-only --- .github/workflows/action.yml | 7 ++++++- README.md | 4 ++-- action.yml | 4 ++-- dist/index.js | 2 +- index.js | 2 +- 5 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index bc54235..a4b041c 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -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 diff --git a/README.md b/README.md index 2255290..3c55e9e 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/action.yml b/action.yml index 6150527..72ce17b 100644 --- a/action.yml +++ b/action.yml @@ -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: diff --git a/dist/index.js b/dist/index.js index 83cd13c..e4fefde 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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'), diff --git a/index.js b/index.js index 4948dc5..2bd1438 100644 --- a/index.js +++ b/index.js @@ -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'),