diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 0f144d1..bc54235 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -12,3 +12,5 @@ jobs: - uses: actions/checkout@v2 - name: Run local action uses: ./ + with: + verbose: true diff --git a/action.yml b/action.yml index 1ca4050..6150527 100644 --- a/action.yml +++ b/action.yml @@ -18,7 +18,7 @@ inputs: mt-cleanup: description: 'Whether to remove extracted metaeditor files after compilation' required: false - default: true + default: false ignore-warnings: description: 'Whether to ignore compilation warnings' required: false diff --git a/dist/index.js b/dist/index.js index bbaa520..83cd13c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -9390,21 +9390,21 @@ const realRun = true const input = realRun ? { + checkSyntaxOnly: (core.getInput('check-syntax-only') || 'false').toUpperCase() === 'TRUE', compilePath: core.getInput('path'), - metaTraderVersion: core.getInput('mt-version'), - metaTraderCleanUp: core.getInput('mt-cleanup'), - ignoreWarnings: core.getInput('ignore-warnings'), + ignoreWarnings: (core.getInput('ignore-warnings') || 'false').toUpperCase() === 'TRUE', logFilePath: core.getInput('log-file'), - checkSyntaxOnly: core.getInput('check-syntax-only'), - verbose: core.getInput('verbose') + metaTraderCleanUp: (core.getInput('mt-cleanup') || 'false').toUpperCase() === 'TRUE', + metaTraderVersion: core.getInput('mt-version'), + verbose: (core.getInput('verbose') || 'false').toUpperCase() === 'TRUE' } : { + checkSyntaxOnly: false, compilePath: '.', - metaTraderVersion: '5.0.0.2361', - metaTraderCleanUp: true, ignoreWarnings: false, logFilePath: 'my-custom-log.log', - checkSyntaxOnly: false, + metaTraderCleanUp: true, + metaTraderVersion: '5.0.0.2361', verbose: true } @@ -9477,9 +9477,9 @@ try { let command if (metaTraderMajorVersion === '5') - command = `"MetaTrader 5/metaeditor64.exe" ${checkSyntaxParam} /compile:"${input.compilePath}" /log:"${input.logFilePath}"` + command = `"MetaTrader 5/metaeditor64.exe" /compile:"${input.compilePath}" /log:"${input.logFilePath}" ${checkSyntaxParam}` else - command = `"MetaTrader 4/metaeditor.exe" ${checkSyntaxParam} /compile:"${input.compilePath}" /log:"${input.logFilePath}"` + command = `"MetaTrader 4/metaeditor.exe" /compile:"${input.compilePath}" /log:"${input.logFilePath}" ${checkSyntaxParam}` input.verbose && console.log(`Executing: ${command}`) diff --git a/index.js b/index.js index 1b4af17..4948dc5 100644 --- a/index.js +++ b/index.js @@ -15,21 +15,21 @@ const realRun = true const input = realRun ? { + checkSyntaxOnly: (core.getInput('check-syntax-only') || 'false').toUpperCase() === 'TRUE', compilePath: core.getInput('path'), - metaTraderVersion: core.getInput('mt-version'), - metaTraderCleanUp: core.getInput('mt-cleanup'), - ignoreWarnings: core.getInput('ignore-warnings'), + ignoreWarnings: (core.getInput('ignore-warnings') || 'false').toUpperCase() === 'TRUE', logFilePath: core.getInput('log-file'), - checkSyntaxOnly: core.getInput('check-syntax-only'), - verbose: core.getInput('verbose') + metaTraderCleanUp: (core.getInput('mt-cleanup') || 'false').toUpperCase() === 'TRUE', + metaTraderVersion: core.getInput('mt-version'), + verbose: (core.getInput('verbose') || 'false').toUpperCase() === 'TRUE' } : { + checkSyntaxOnly: false, compilePath: '.', - metaTraderVersion: '5.0.0.2361', - metaTraderCleanUp: true, ignoreWarnings: false, logFilePath: 'my-custom-log.log', - checkSyntaxOnly: false, + metaTraderCleanUp: true, + metaTraderVersion: '5.0.0.2361', verbose: true } @@ -102,9 +102,9 @@ try { let command if (metaTraderMajorVersion === '5') - command = `"MetaTrader 5/metaeditor64.exe" ${checkSyntaxParam} /compile:"${input.compilePath}" /log:"${input.logFilePath}"` + command = `"MetaTrader 5/metaeditor64.exe" /compile:"${input.compilePath}" /log:"${input.logFilePath}" ${checkSyntaxParam}` else - command = `"MetaTrader 4/metaeditor.exe" ${checkSyntaxParam} /compile:"${input.compilePath}" /log:"${input.logFilePath}"` + command = `"MetaTrader 4/metaeditor.exe" /compile:"${input.compilePath}" /log:"${input.logFilePath}" ${checkSyntaxParam}` input.verbose && console.log(`Executing: ${command}`)