Fix #2367, add codeql-version to outputs
This commit is contained in:
parent
be825d5eef
commit
e1f83c153a
4 changed files with 5 additions and 1 deletions
|
|
@ -139,6 +139,8 @@ inputs:
|
||||||
outputs:
|
outputs:
|
||||||
codeql-path:
|
codeql-path:
|
||||||
description: The path of the CodeQL binary used for analysis
|
description: The path of the CodeQL binary used for analysis
|
||||||
|
codeql-version:
|
||||||
|
description: The version of the CodeQL binary used for analysis
|
||||||
runs:
|
runs:
|
||||||
using: node20
|
using: node20
|
||||||
main: '../lib/init-action.js'
|
main: '../lib/init-action.js'
|
||||||
|
|
|
||||||
1
lib/init-action.js
generated
1
lib/init-action.js
generated
|
|
@ -325,6 +325,7 @@ async function run() {
|
||||||
// did not exist until now.
|
// did not exist until now.
|
||||||
(0, diagnostics_1.flushDiagnostics)(config);
|
(0, diagnostics_1.flushDiagnostics)(config);
|
||||||
core.setOutput("codeql-path", config.codeQLCmd);
|
core.setOutput("codeql-path", config.codeQLCmd);
|
||||||
|
core.setOutput("codeql-version", (await codeql.getVersion()).version);
|
||||||
}
|
}
|
||||||
catch (unwrappedError) {
|
catch (unwrappedError) {
|
||||||
const error = (0, util_1.wrapError)(unwrappedError);
|
const error = (0, util_1.wrapError)(unwrappedError);
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -554,6 +554,7 @@ async function run() {
|
||||||
flushDiagnostics(config);
|
flushDiagnostics(config);
|
||||||
|
|
||||||
core.setOutput("codeql-path", config.codeQLCmd);
|
core.setOutput("codeql-path", config.codeQLCmd);
|
||||||
|
core.setOutput("codeql-version", (await codeql.getVersion()).version);
|
||||||
} catch (unwrappedError) {
|
} catch (unwrappedError) {
|
||||||
const error = wrapError(unwrappedError);
|
const error = wrapError(unwrappedError);
|
||||||
core.setFailed(error.message);
|
core.setFailed(error.message);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue