feat: add matrix alias to simplify using outputs for matrix jobs (#1975)

Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
Tonye Jack
2024-03-08 18:20:45 -07:00
committed by GitHub
parent fe6c3ea0ca
commit 008ba8ceec
8 changed files with 520 additions and 9 deletions

11
dist/index.js generated vendored
View File

@@ -1540,8 +1540,13 @@ const getInputs = () => {
required: false,
trimWhitespace: false
});
const json = core.getBooleanInput('json', { required: false });
const escapeJson = core.getBooleanInput('escape_json', { required: false });
let json = core.getBooleanInput('json', { required: false });
let escapeJson = core.getBooleanInput('escape_json', { required: false });
const matrix = core.getBooleanInput('matrix', { required: false });
if (matrix) {
json = true;
escapeJson = false;
}
const safeOutput = core.getBooleanInput('safe_output', { required: false });
const fetchDepth = core.getInput('fetch_depth', { required: false });
const sinceLastRemoteCommit = core.getBooleanInput('since_last_remote_commit', { required: false });
@@ -2457,7 +2462,7 @@ const isInsideWorkTree = (_0) => __awaiter(void 0, [_0], void 0, function* ({ cw
silent: !core.isDebug()
});
if (stdout.trim() !== 'true') {
core.debug(`The current working directory is not inside a git repository: ${cwd}`);
core.warning(`The current working directory is not inside a git repository: ${cwd}`);
}
return stdout.trim() === 'true';
});

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long